SSO login bug fixed
authorAjay Bura <ajbura@gmail.com>
Tue, 19 Oct 2021 14:53:15 +0000 (20:23 +0530)
committerKrishan <33421343+kfiven@users.noreply.github.com>
Mon, 25 Oct 2021 12:29:57 +0000 (17:59 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/app/templates/auth/Auth.jsx

index f2d2b1eb47ae20bc54ad248e56720b809761fdad..6586e58865849ec1c12e925ebc4279d64f1ebcbe 100644 (file)
@@ -95,7 +95,8 @@ function Auth() {
         const baseUrl = localStorage.getItem(cons.secretKey.BASE_URL);
         auth.loginWithToken(baseUrl, loginToken)
           .then(() => {
-            window.location.replace('/');
+            const { href } = window.location;
+            window.location.replace(href.slice(0, href.indexOf('?')));
           })
           .catch((error) => {
             changeProcess(null);
@@ -314,7 +315,7 @@ function Auth() {
           </form>
         </div>
 
-        <div className="flex--center">
+        <div style={{ flexDirection: 'column' }} className="flex--center">
           <Text variant="b2">
             {`${(type === 'login' ? 'Don\'t have' : 'Already have')} an account?`}
             <button
@@ -328,6 +329,9 @@ function Auth() {
               { type === 'login' ? ' Register' : ' Login' }
             </button>
           </Text>
+          <span style={{ marginTop: 'var(--sp-extra-tight)' }}>
+            <Text variant="b3">v1.3.2</Text>
+          </span>
         </div>
       </StaticWrapper>
     </>