mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:52:24 +00:00
cleanup
This commit is contained in:
@@ -108,8 +108,6 @@ export default function PasswordForm({
|
|||||||
m !== AuthenticationMethodType.PASSKEY,
|
m !== AuthenticationMethodType.PASSKEY,
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log(availableSecondFactors, loginSettings);
|
|
||||||
|
|
||||||
if (availableSecondFactors.length == 1) {
|
if (availableSecondFactors.length == 1) {
|
||||||
const params = new URLSearchParams({
|
const params = new URLSearchParams({
|
||||||
loginName: submitted.factors.user.loginName,
|
loginName: submitted.factors.user.loginName,
|
||||||
@@ -224,7 +222,6 @@ export default function PasswordForm({
|
|||||||
autoComplete="password"
|
autoComplete="password"
|
||||||
{...register("password", { required: "This field is required" })}
|
{...register("password", { required: "This field is required" })}
|
||||||
label="Password"
|
label="Password"
|
||||||
// error={errors.username?.message as string}
|
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
className="transition-all text-sm hover:text-primary-light-500 dark:hover:text-primary-dark-500"
|
className="transition-all text-sm hover:text-primary-light-500 dark:hover:text-primary-dark-500"
|
||||||
@@ -236,7 +233,12 @@ export default function PasswordForm({
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
{loginName && (
|
{loginName && (
|
||||||
<input type="hidden" name="loginName" value={loginName} />
|
<input
|
||||||
|
type="hidden"
|
||||||
|
name="loginName"
|
||||||
|
autoComplete="username"
|
||||||
|
value={loginName}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user