File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ public function checkPreAuth(UserInterface $user): void
15
15
return ;
16
16
}
17
17
18
- if (null !== $ user ->getToken ()) {
18
+ if (null !== $ user ->getToken () && ! $ user -> getViaGithub () ) {
19
19
throw new CustomUserMessageAccountStatusException ('Please verify your email address ' );
20
20
}
21
21
}
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ function buildServices() {
38
38
}
39
39
} ) . catch ( function ( error ) {
40
40
console . log ( error ) ;
41
- window . location = '/home' as any ;
42
41
} ) ;
43
42
}
44
43
} ) ;
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ function isLogged() {
25
25
const urlParams = new URLSearchParams ( window . location . search ) ;
26
26
const accessToken = urlParams . get ( 'token' ) ;
27
27
const refreshToken = urlParams . get ( 'refresh_token' ) ;
28
- if ( accessToken && refreshToken ) {
28
+ if ( accessToken != null && refreshToken != null ) {
29
29
localStorage . setItem ( 'access_token' , accessToken ) ;
30
30
localStorage . setItem ( 'refresh_token' , refreshToken ) ;
31
31
}
32
32
33
- return ! ! localStorage . getItem ( 'access_token' ) ;
33
+ return ! ! localStorage . getItem ( 'access_token' ) && localStorage . getItem ( 'access_token' ) != null ;
34
34
}
35
35
36
36
root . render (
You can’t perform that action at this time.
0 commit comments