mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
feat: Google One Tap should be hidden after logged in (#2853)
* fix: Google One Tap should be hidden after logged in * Change the call location for google.accounts.id.cancel()
This commit is contained in:
@ -374,6 +374,7 @@ class App extends Component {
|
||||
});
|
||||
}}
|
||||
onLoginSuccess={(redirectUrl) => {
|
||||
window.google?.accounts?.id?.cancel();
|
||||
if (redirectUrl) {
|
||||
localStorage.setItem("mfaRedirectUrl", redirectUrl);
|
||||
}
|
||||
|
Reference in New Issue
Block a user