feat: pass register param directly to login page from OAuth authorize (#26922)
This commit is contained in:
1 parent
b13e0f46ad
commit
411ca11d25
1 file changed
+5
@@ -111,6 +111,11 @@ export default function Authorize() {
|
||||
const urlSearchParams = new URLSearchParams({
|
||||
callbackUrl: `auth/oauth2/authorize?${queryString}`,
|
||||
});
|
||||
// Pass register param directly so login page can hide "Don't have an account" link
|
||||
const registerParam = searchParams?.get("register");
|
||||
if (registerParam) {
|
||||
urlSearchParams.set("register", registerParam);
|
||||
}
|
||||
router.replace(`/auth/login?${urlSearchParams.toString()}`);
|
||||
}
|
||||
}, [status]);
|
||||
|
||||
Reference in new issue
Block a user