Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Make mfa lockout risk clear in dashboard (#47344)

Gildas Garciaf78c9db32e2e
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
index cf5c7707245..a26aea917ea 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
@@ -1,7 +1,6 @@
import dayjs from 'dayjs'
import { useState } from 'react'
import { Button } from 'ui'
-import { Admonition } from 'ui-patterns/admonition'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
import { AddNewFactorModal } from './AddNewFactorModal'
@@ -28,14 +27,6 @@ export const TOTPFactors = () => {
)}
{isSuccess && (
<>
- {data.totp.length === 1 && (
- <Admonition
- type="warning"
- layout="horizontal"
- title="We recommend configuring two authenticator apps across different devices"
- description="The two authenticator apps will serve as a backup for each other."
- />
- )}
<div>
{data.totp.map((factor) => {
return (
diff --git a/apps/studio/pages/account/security.tsx b/apps/studio/pages/account/security.tsx
index a6d8dfdb5cc..b720c63b062 100644
--- a/apps/studio/pages/account/security.tsx
+++ b/apps/studio/pages/account/security.tsx
@@ -1,5 +1,6 @@
import { Lock } from 'lucide-react'
import { Badge, Card, CardContent, CardHeader } from 'ui'
+import { Admonition } from 'ui-patterns'
import { PageContainer } from 'ui-patterns/PageContainer'
import {
PageHeader,
@@ -40,6 +41,15 @@ const Security: NextPageWithLayout = () => {
</PageHeaderMeta>
</PageHeader>
<PageContainer size="small">
+ {data?.totp.length === 1 && (
+ <Admonition
+ className="mt-8"
+ type="danger"
+ layout="horizontal"
+ title="Avoid being locked out"
+ description="Add a backup sign-in method now. Otherwise, losing access to your authenticator app will permanently lock you out of your account."
+ />
+ )}
<Card className="mt-8">
<CardHeader className="py-3 flex flex-row items-center justify-between">
<div className="flex flex-row gap-4 items-center py-1 mb-0">