-
-
-
- {errors?.passwordConfirm && (
-
{errors.passwordConfirm}
+ {authMethods.emailPassword && (
+ <>
+
+
+
+
+
+
+ Or continue with
- )}
-
- {/* honeypot */}
-
-
-
-
-
-
-
-
-
-
- Or continue with
-
-
+ >
+ )}
- {authProviders.length > 0 && (
-
- {authProviders.map((provider) => (
+ {authMethods.authProviders.length > 0 && (
+
+ {authMethods.authProviders.map((provider) => (
)}
- {!authProviders.length && (
+ {!authMethods.authProviders.length && (
)}
-
- Forgot password?
-
+
+ {authMethods.emailPassword && (
+
+ Forgot password?
+
+ )}
)
}
diff --git a/site/src/components/login/forgot-pass-form.tsx b/site/src/components/login/forgot-pass-form.tsx
index dc00fea..97a304c 100644
--- a/site/src/components/login/forgot-pass-form.tsx
+++ b/site/src/components/login/forgot-pass-form.tsx
@@ -1,4 +1,4 @@
-import { LoaderCircle, MailIcon, SendIcon } from 'lucide-react'
+import { LoaderCircle, MailIcon, SendHorizonalIcon } from 'lucide-react'
import { Input } from '../ui/input'
import { Label } from '../ui/label'
import { useCallback, useState } from 'react'
@@ -70,7 +70,7 @@ export default function ForgotPassword() {
{isLoading ? (
) : (
-
+
)}
Reset password
@@ -78,7 +78,7 @@ export default function ForgotPassword() {