mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 06:31:14 -05:00
feat: Allow OAuth users to add passwords
This commit is contained in:
@@ -19,14 +19,16 @@ interface PasswordSetupDialogProps {
|
||||
open: boolean;
|
||||
onOpenChange: (open: boolean) => void;
|
||||
onSuccess: () => void;
|
||||
provider: OAuthProvider;
|
||||
provider?: OAuthProvider;
|
||||
mode?: 'standalone' | 'disconnect';
|
||||
}
|
||||
|
||||
export function PasswordSetupDialog({
|
||||
open,
|
||||
onOpenChange,
|
||||
onSuccess,
|
||||
provider
|
||||
provider,
|
||||
mode = 'standalone'
|
||||
}: PasswordSetupDialogProps) {
|
||||
const [password, setPassword] = useState('');
|
||||
const [confirmPassword, setConfirmPassword] = useState('');
|
||||
@@ -73,8 +75,17 @@ export function PasswordSetupDialog({
|
||||
<DialogTitle>Set Up Password</DialogTitle>
|
||||
</div>
|
||||
<DialogDescription>
|
||||
You need to set a password before disconnecting your {provider} account.
|
||||
This ensures you can still access your account.
|
||||
{mode === 'disconnect' && provider ? (
|
||||
<>
|
||||
You need to set a password before disconnecting your {provider} account.
|
||||
This ensures you can still access your account.
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
Add a password to your account for increased security. You'll be able to
|
||||
sign in using either your password or your connected social accounts.
|
||||
</>
|
||||
)}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user