The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Give password protection visibility within auth protection (#39095)
Saxon Fletcher00702b719187
diff --git a/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsxindex 748806817ca..f5ef7d711ef 100644--- a/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx+++ b/apps/studio/components/interfaces/Auth/ProtectionAuthSettingsForm/ProtectionAuthSettingsForm.tsx@@ -1,6 +1,7 @@import { yupResolver } from '@hookform/resolvers/yup'import { PermissionAction } from '@supabase/shared-types/out/constants'import { Eye, EyeOff } from 'lucide-react'+import Link from 'next/link'import { useEffect, useState } from 'react'import { useForm } from 'react-hook-form'import { toast } from 'sonner'@@ -18,6 +19,7 @@ import {AlertDescription_Shadcn_,AlertTitle_Shadcn_,Alert_Shadcn_,+ Badge,Button,Card,CardContent,@@ -267,6 +269,29 @@ export const ProtectionAuthSettingsForm = () => {</>)}+ <CardContent>+ <FormField_Shadcn_+ control={protectionForm.control}+ name="PASSWORD_HIBP_ENABLED"+ render={({ field }) => (+ <FormItemLayout+ layout="flex-row-reverse"+ label="Prevent use of leaked passwords"+ description="Rejects the use of known or easy to guess passwords on sign up or password change. "+ >+ <div className="flex items-center gap-2">+ <Badge variant={field.value ? 'success' : 'default'}>+ {field.value ? 'Enabled' : 'Disabled'}+ </Badge>+ <Link href={`/project/${projectRef}/auth/providers?provider=Email`}>+ <Button type="default">Configure email provider</Button>+ </Link>+ </div>+ </FormItemLayout>+ )}+ />+ </CardContent>+<CardFooter className="justify-end space-x-2">{protectionForm.formState.isDirty && (<Button type="default" onClick={() => protectionForm.reset()}>