misc: added explicit comment of intent

This commit is contained in:
Sheen Capadngan
2024-06-27 12:55:39 +08:00
parent c460f22665
commit b3463e0d0f

View File

@@ -31,6 +31,7 @@ export const AuthPanel = () => {
formState: { isSubmitting, isDirty }
} = useForm<TAuthForm>({
resolver: zodResolver(formSchema),
// if not yet explicitly defined by the admin, all login methods should be enabled by default
values: enabledLoginMethods
? {
isEmailEnabled: enabledLoginMethods.includes(LoginMethod.EMAIL),