mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
redirect logic fix google sso
This commit is contained in:
1 parent
b6adb1b810
commit
83c17cdfb5
2 files changed
+16
-8
No files matched your search
@@ -116,12 +116,16 @@ function LoginPage() {
|
||||
google_credential: args.credential,
|
||||
});
|
||||
|
||||
// console.log(">>> Google Create Account Response", response);
|
||||
|
||||
if (response.username_not_yet_customized === true) {
|
||||
if (response.success) {
|
||||
queryAppState();
|
||||
openModal();
|
||||
|
||||
if (response.username_not_yet_customized === true) {
|
||||
openModal();
|
||||
}
|
||||
|
||||
history.push(redirectUrl);
|
||||
} else {
|
||||
console.error("Google account creation failed");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -125,12 +125,16 @@ function SignupPage() {
|
||||
google_credential: args.credential,
|
||||
});
|
||||
|
||||
// console.log(">>> Google Create Account Response", response);
|
||||
|
||||
if (response.username_not_yet_customized === true) {
|
||||
if (response.success) {
|
||||
queryAppState();
|
||||
openModal();
|
||||
|
||||
if (response.username_not_yet_customized === true) {
|
||||
openModal();
|
||||
}
|
||||
|
||||
history.push(redirectUrl);
|
||||
} else {
|
||||
console.error("Google account creation failed");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user