mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 11:26:33 +00:00
misc: added explicit comment of intent
This commit is contained in:
@@ -31,6 +31,7 @@ export const AuthPanel = () => {
|
|||||||
formState: { isSubmitting, isDirty }
|
formState: { isSubmitting, isDirty }
|
||||||
} = useForm<TAuthForm>({
|
} = useForm<TAuthForm>({
|
||||||
resolver: zodResolver(formSchema),
|
resolver: zodResolver(formSchema),
|
||||||
|
// if not yet explicitly defined by the admin, all login methods should be enabled by default
|
||||||
values: enabledLoginMethods
|
values: enabledLoginMethods
|
||||||
? {
|
? {
|
||||||
isEmailEnabled: enabledLoginMethods.includes(LoginMethod.EMAIL),
|
isEmailEnabled: enabledLoginMethods.includes(LoginMethod.EMAIL),
|
||||||
|
|||||||
Reference in New Issue
Block a user