mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 05:12:20 +00:00
register with params
This commit is contained in:
@@ -76,6 +76,7 @@ export default function LoginPasskey({
|
||||
? UserVerificationRequirement.REQUIRED
|
||||
: UserVerificationRequirement.DISCOURAGED,
|
||||
) {
|
||||
setError("");
|
||||
setLoading(true);
|
||||
const session = await updateSession({
|
||||
loginName,
|
||||
|
||||
@@ -205,7 +205,17 @@ export default function UsernameForm({
|
||||
{allowRegister && (
|
||||
<button
|
||||
className="transition-all text-sm hover:text-primary-light-500 dark:hover:text-primary-dark-500"
|
||||
onClick={() => router.push("/register")}
|
||||
onClick={() => {
|
||||
const registerParams = new URLSearchParams();
|
||||
if (organization) {
|
||||
registerParams.append("organization", organization);
|
||||
}
|
||||
if (authRequestId) {
|
||||
registerParams.append("authRequestId", authRequestId);
|
||||
}
|
||||
|
||||
router.push("/register?" + registerParams);
|
||||
}}
|
||||
type="button"
|
||||
disabled={loading}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user