Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

Delete my account on the phone: the screen lock, then the pairing

Duarte Santos4c7008fcf1c0
diff --git a/frontend/src/components/DeleteAccount.jsx b/frontend/src/components/DeleteAccount.jsx
index 2abc6664b..b676cc141 100644
--- a/frontend/src/components/DeleteAccount.jsx
+++ b/frontend/src/components/DeleteAccount.jsx
@@ -5,14 +5,17 @@
// export first (the very one Data & backup has, handed in by Settings) and asks for the
// account's name typed back; then the owner's proof, the same step the other changes to a way in
// ask (ProveOwner): a passkey, or the current password where it counts. The proof carries the
-// delete. Shown only while signed in to or paired with a server: a phone in local-only mode has
-// no account, and "Reset everything" is how it wipes its data.
+// delete. The phone app holds no passkey for the server, so there a profile without a password is
+// proved by the pairing (the server's rule), after the phone's own screen lock says it is its
+// owner (DeviceConfirm). Shown only while signed in to or paired with a server: a phone in
+// local-only mode has no account, and "Reset everything" is how it wipes its data.
import { useEffect, useRef, useState } from 'react'
import { useStore } from '../store/useStore.js'
import { useUI } from '../store/useUI.js'
import { t } from '../lib/i18n.js'
import { api } from '../lib/api.js'
import { MOBILE } from '../lib/mobile.js'
+import { deviceLock, confirmDeviceOwner } from '../lib/device-auth.js'
import { passwordError, ProveOwner } from './PasswordAuth.jsx'
import { Row, Button } from './ui.jsx'
@@ -55,7 +58,7 @@ export function DeleteAccountSheet({ close, exportBackup, exportBackupZip, hasMe
done?.()
}
// The phone app cannot hold a passkey for your server (its own origin is not the server's), so
- // there only the password can say it is you.
+ // there the password says it is you, or, with none, the pairing and the phone's own lock.
const passkey = !MOBILE && (proofs?.passkeys?.length || 0) > 0
const password = !!proofs?.password
return <>
@@ -80,7 +83,7 @@ export function DeleteAccountSheet({ close, exportBackup, exportBackupZip, hasMe
</> : <>
<div className="dim small" style={{ marginBottom: 14 }}>{t('First confirm that it is you.')}</div>
{!proofs ? (err ? <div className="small" role="alert" style={errStyle}>{err}</div> : <div className="dim small">{t('Loading…')}</div>)
- : MOBILE && !password ? <div className="dim small">{t('This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.')}</div>
+ : MOBILE && !password ? <DeviceConfirm onConfirmed={() => remove({})} />
: <ProveOwner passkey={passkey} password={password} explain={deleteAccountError} danger submitText={t('Delete forever')} onProof={remove} />}
<div style={{ height: 8 }} />
<Button type="button" variant="ghost" className="dim" onClick={() => setStep('name')}>{t('Back')}</Button>
@@ -88,6 +91,34 @@ export function DeleteAccountSheet({ close, exportBackup, exportBackupZip, hasMe
</>
}
+/* A paired phone, for a profile without a password: the phone's screen lock (Face ID, Touch ID,
+ a fingerprint or the passcode) is asked, and only once it says yes does the delete go out.
+ Backed out or failed, nothing is sent and the sheet stays. A phone with no screen lock at all
+ has nothing to ask: the typed name is the only check, and the sheet says so. */
+function DeviceConfirm({ onConfirmed }) {
+ const [lock, setLock] = useState(null) // 'set' | 'none' | 'unknown'
+ const [busy, setBusy] = useState(false)
+ const [err, setErr] = useState(null)
+ useEffect(() => { deviceLock().then(setLock) }, [])
+ const go = async () => {
+ if (busy) return
+ setBusy(true); setErr(null)
+ try {
+ const r = await confirmDeviceOwner(t('Confirm it’s you to delete your openGym account'))
+ if (r !== 'ok' && r !== 'none') { setErr(t('Not confirmed on this phone. Nothing was deleted.')); return }
+ await onConfirmed()
+ } catch (e) { setErr(deleteAccountError(e)) }
+ finally { setBusy(false) }
+ }
+ return <>
+ <div className="dim small" style={{ marginBottom: 14 }}>{lock === 'none'
+ ? t('This phone has no screen lock, so the name you typed is the only check.')
+ : t('Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.')}</div>
+ <button type="button" className="btn danger" disabled={busy || !lock} onClick={go}>{t('Delete forever')}</button>
+ {err && <div className="small" role="alert" style={errStyle}>{err}</div>}
+ </>
+}
+
// The row on the Account page. `done` runs once the account is gone (Settings goes home).
export function DeleteAccountRow(props) {
const open = () => useUI.getState().openSheet(close => <DeleteAccountSheet {...props} close={close} />)
diff --git a/frontend/src/components/DeleteAccount.test.jsx b/frontend/src/components/DeleteAccount.test.jsx
index bdfbebd9e..85d20edde 100644
--- a/frontend/src/components/DeleteAccount.test.jsx
+++ b/frontend/src/components/DeleteAccount.test.jsx
@@ -8,8 +8,9 @@ globalThis.IS_REACT_ACT_ENVIRONMENT = true
/* "Delete my account" on screen: the backup export is offered first, nothing goes on until the
account's name is typed back, then the owner's proof (ProveOwner, the same step the other
- changes to a way in ask) carries the delete. The server's refusals are said in the UI
- language. The store and the API are stand-ins; what the sheet sends and says is the point. */
+ changes to a way in ask) carries the delete; on the phone, for a profile with no password, the
+ phone's own screen lock comes first and the pairing carries it. The server's refusals are said
+ in the UI language. The store and the API are stand-ins; what the sheet sends and says is the point. */
const mocks = vi.hoisted(() => {
const state = { sheets: [], MOBILE: false, webauthn: true, proofs: { passkeys: [{ id: 'k1' }], password: true } }
state.toast = vi.fn()
@@ -17,6 +18,9 @@ const mocks = vi.hoisted(() => {
state.passkeyAssertion = vi.fn(async () => ({ cid: 'c1', credential: { id: 'k1' } }))
state.api = vi.fn(async path => { if (path === '/api/account/passkeys') return state.proofs; return {} })
state.snapshot = () => ({ user: { id: 'u1', name: 'Mallory' }, deleteAccount: state.deleteAccount })
+ state.lock = 'set'
+ state.deviceLock = vi.fn(async () => state.lock)
+ state.confirmDeviceOwner = vi.fn(async () => 'ok')
return state
})
vi.mock('../store/useStore.js', () => {
@@ -38,6 +42,10 @@ vi.mock('../lib/api.js', () => ({
}))
vi.mock('../lib/mobile.js', () => ({ get MOBILE() { return mocks.MOBILE } }))
vi.mock('../sheets.jsx', () => ({ askAddDeviceData: vi.fn() }))
+vi.mock('../lib/device-auth.js', () => ({
+ deviceLock: (...a) => mocks.deviceLock(...a),
+ confirmDeviceOwner: (...a) => mocks.confirmDeviceOwner(...a),
+}))
const fail = (status, data) => Object.assign(new Error(data?.error || 'HTTP ' + status), { status, data })
@@ -79,6 +87,10 @@ beforeEach(() => {
mocks.webauthn = true
mocks.proofs = { passkeys: [{ id: 'k1' }], password: true }
mocks.api.mockClear()
+ mocks.lock = 'set'
+ mocks.deviceLock.mockClear()
+ mocks.confirmDeviceOwner.mockReset()
+ mocks.confirmDeviceOwner.mockImplementation(async () => 'ok')
mocks.passkeyAssertion.mockClear()
mocks.sheets.length = 0
mocks.toast.mockClear()
@@ -166,13 +178,58 @@ describe('DeleteAccountSheet', () => {
expect(password(host)).toBeTruthy()
})
- it('a phone with no password to prove it says where to do it instead', async () => {
+ it('a phone with no password: its own lock is asked, then the pairing carries the delete', async () => {
mocks.MOBILE = true
mocks.proofs = { passkeys: [{ id: 'k1' }], password: false }
- const { host } = sheet()
+ const { p, host } = sheet()
await toProof(host)
- expect(host.textContent).toContain('This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.')
+ expect(host.textContent).toContain('Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.')
expect(password(host)).toBeNull()
+ await act(async () => { button(host, 'Delete forever').click() })
+ await settle()
+ expect(mocks.confirmDeviceOwner).toHaveBeenCalledWith('Confirm it’s you to delete your openGym account')
+ expect(mocks.deleteAccount).toHaveBeenCalledWith('Mallory', {})
+ expect(mocks.confirmDeviceOwner.mock.invocationCallOrder[0]).toBeLessThan(mocks.deleteAccount.mock.invocationCallOrder[0])
+ expect(p.done).toHaveBeenCalled()
+ })
+
+ it('backed out of the phone’s lock, or failed: nothing is sent and the sheet stays', async () => {
+ mocks.MOBILE = true
+ mocks.proofs = { passkeys: [], password: false }
+ const { p, host } = sheet()
+ await toProof(host)
+ for (const answer of ['cancelled', 'failed']) {
+ mocks.confirmDeviceOwner.mockResolvedValueOnce(answer)
+ await act(async () => { button(host, 'Delete forever').click() })
+ await settle()
+ expect(alertText(host)).toBe('Not confirmed on this phone. Nothing was deleted.')
+ }
+ expect(mocks.deleteAccount).not.toHaveBeenCalled()
+ expect(p.close).not.toHaveBeenCalled()
+ })
+
+ it('a phone with no screen lock says the typed name is the only check, and goes ahead', async () => {
+ mocks.MOBILE = true
+ mocks.lock = 'none'
+ mocks.proofs = { passkeys: [], password: false }
+ mocks.confirmDeviceOwner.mockResolvedValue('none')
+ const { host } = sheet()
+ await toProof(host)
+ expect(host.textContent).toContain('This phone has no screen lock, so the name you typed is the only check.')
+ await act(async () => { button(host, 'Delete forever').click() })
+ await settle()
+ expect(mocks.deleteAccount).toHaveBeenCalledWith('Mallory', {})
+ })
+
+ it('the web build never asks the phone’s lock', async () => {
+ mocks.proofs = { passkeys: [], password: true }
+ const { host } = sheet()
+ await toProof(host)
+ type(password(host), 'correct horse battery staple')
+ await submit(host)
+ expect(mocks.deleteAccount).toHaveBeenCalled()
+ expect(mocks.deviceLock).not.toHaveBeenCalled()
+ expect(mocks.confirmDeviceOwner).not.toHaveBeenCalled()
})
})
diff --git a/frontend/src/lib/device-auth.js b/frontend/src/lib/device-auth.js
new file mode 100644
index 000000000..5264375d6
--- /dev/null
+++ b/frontend/src/lib/device-auth.js
@@ -0,0 +1,40 @@
+// The phone's own screen lock (Face ID, Touch ID, a fingerprint, the passcode), asked before the
+// phone app deletes an account its pairing proves (components/DeleteAccount.jsx): the server takes
+// a paired phone's word for a profile with no password, so the phone makes sure its owner is the
+// one holding it. The local `DeviceAuth` plugin does the asking: ios/App/App/DeviceAuthPlugin.swift
+// (LocalAuthentication, .deviceOwnerAuthentication) and android/.../DeviceAuthPlugin.java
+// (BiometricPrompt, or the lock screen's own confirm before Android 10). The web build never
+// gets here: every call answers as if there were no plugin and registers nothing.
+import { MOBILE } from './mobile.js'
+
+// Registered once, and handed out inside an object: a Capacitor plugin proxy answers `then` with
+// a native call that never settles, so a promise resolved with the bare proxy hangs (#42).
+let pluginP = null
+const devicePlugin = () => pluginP || (pluginP = (async () => {
+ if (!MOBILE) return null
+ const { registerPlugin } = await import('@capacitor/core')
+ return { DeviceAuth: registerPlugin('DeviceAuth') }
+})().catch(() => null))
+
+// Whether the phone has a screen lock: 'set', 'none', or 'unknown' when it could not be asked.
+// Only 'none' lets the delete go ahead without the lock (the typed name is then the only check).
+export async function deviceLock() {
+ const p = await devicePlugin()
+ if (!p) return 'unknown'
+ try { return (await p.DeviceAuth.check())?.secure ? 'set' : 'none' }
+ catch { return 'unknown' }
+}
+
+// Asks the phone's owner to unlock. 'ok', 'none' (no screen lock to ask), 'cancelled' (they
+// backed out) or 'failed' (anything else, a missing plugin included: nothing is sent then).
+export async function confirmDeviceOwner(reason) {
+ const p = await devicePlugin()
+ if (!p) return 'failed'
+ try {
+ await p.DeviceAuth.verify({ reason })
+ return 'ok'
+ } catch (e) {
+ if (e?.code === 'not-secure') return 'none'
+ return e?.code === 'cancelled' ? 'cancelled' : 'failed'
+ }
+}
diff --git a/frontend/src/lib/device-auth.test.js b/frontend/src/lib/device-auth.test.js
new file mode 100644
index 000000000..205bf8ff8
--- /dev/null
+++ b/frontend/src/lib/device-auth.test.js
@@ -0,0 +1,72 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+
+/* The phone's screen lock before a paired phone deletes its account (lib/device-auth.js). The
+ native DeviceAuth plugin is a stand-in shaped like Capacitor's: a Proxy that answers every
+ property, `then` included, with a native call; one resolved as a promise's value would hang
+ (#42), which the wrapper object avoids. The web build registers nothing. */
+const mocks = vi.hoisted(() => ({ MOBILE: true, check: vi.fn(), verify: vi.fn(), registered: 0 }))
+vi.mock('./mobile.js', () => ({ get MOBILE() { return mocks.MOBILE } }))
+vi.mock('@capacitor/core', () => ({
+ registerPlugin: name => {
+ mocks.registered++
+ expect(name).toBe('DeviceAuth')
+ return new Proxy({}, {
+ get: (_, prop) => prop === 'check' ? mocks.check : prop === 'verify' ? mocks.verify
+ : () => new Promise(() => {}) // `then` and everything else: a native call that never answers
+ })
+ }
+}))
+
+const nativeError = code => Object.assign(new Error(code), { code })
+const fresh = async () => { vi.resetModules(); return import('./device-auth.js') }
+
+beforeEach(() => {
+ mocks.MOBILE = true
+ mocks.registered = 0
+ mocks.check.mockReset()
+ mocks.verify.mockReset()
+})
+
+describe('deviceLock', () => {
+ it('says whether the phone has a screen lock, and unknown when it cannot be asked', async () => {
+ const { deviceLock } = await fresh()
+ mocks.check.mockResolvedValueOnce({ secure: true })
+ expect(await deviceLock()).toBe('set')
+ mocks.check.mockResolvedValueOnce({ secure: false })
+ expect(await deviceLock()).toBe('none')
+ mocks.check.mockRejectedValueOnce(new Error('not implemented'))
+ expect(await deviceLock()).toBe('unknown')
+ expect(mocks.registered).toBe(1)
+ })
+})
+
+describe('confirmDeviceOwner', () => {
+ it('ok when unlocked, with the reason the prompt shows', async () => {
+ const { confirmDeviceOwner } = await fresh()
+ mocks.verify.mockResolvedValueOnce({ verified: true })
+ expect(await confirmDeviceOwner('Confirm it’s you')).toBe('ok')
+ expect(mocks.verify).toHaveBeenCalledWith({ reason: 'Confirm it’s you' })
+ })
+
+ it('tells backing out, no lock at all, and anything else apart', async () => {
+ const { confirmDeviceOwner } = await fresh()
+ mocks.verify.mockRejectedValueOnce(nativeError('cancelled'))
+ expect(await confirmDeviceOwner('x')).toBe('cancelled')
+ mocks.verify.mockRejectedValueOnce(nativeError('not-secure'))
+ expect(await confirmDeviceOwner('x')).toBe('none')
+ mocks.verify.mockRejectedValueOnce(nativeError('failed'))
+ expect(await confirmDeviceOwner('x')).toBe('failed')
+ mocks.verify.mockRejectedValueOnce(new Error('"DeviceAuth" plugin is not implemented on android'))
+ expect(await confirmDeviceOwner('x')).toBe('failed')
+ })
+})
+
+describe('the web build', () => {
+ it('registers nothing and never says yes', async () => {
+ mocks.MOBILE = false
+ const { deviceLock, confirmDeviceOwner } = await fresh()
+ expect(await deviceLock()).toBe('unknown')
+ expect(await confirmDeviceOwner('x')).toBe('failed')
+ expect(mocks.registered).toBe(0)
+ })
+})
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index a946b1768..b98e342c9 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -2310,5 +2310,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'أنت المسؤول الوحيد هنا، وملفات أخرى ما زالت تستخدم هذا الخادم. اجعل شخصًا آخر مسؤولًا أولًا.',
'Couldn’t delete the account. Nothing was removed.': 'تعذّر حذف الحساب. لم يُحذف أي شيء.',
'Your account is gone. Thanks for every rep.': 'حسابك لم يعد موجودًا. شكرًا على كل تكرار.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'لا يستطيع هذا التطبيق التأكيد بمفتاح مرور. احذف حسابك من openGym في المتصفح، أو أضف كلمة مرور هناك أولًا.',
+ 'Confirm it’s you to delete your openGym account': 'أكّد أنك أنت لحذف حساب openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'لم يتم التأكيد على هذا الهاتف. لم يُحذف أي شيء.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'لا يوجد قفل شاشة على هذا الهاتف، لذا فالاسم الذي كتبته هو التحقق الوحيد.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'سيتحقق هاتفك من أنك أنت (الوجه أو البصمة أو رمز المرور)، ثم يُحذف الحساب.',
}
diff --git a/frontend/src/locales/bn.js b/frontend/src/locales/bn.js
index cc124ba8e..aac3383f9 100644
--- a/frontend/src/locales/bn.js
+++ b/frontend/src/locales/bn.js
@@ -2334,5 +2334,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'আপনি এখানে একমাত্র অ্যাডমিন, আর অন্য প্রোফাইলগুলো এখনও এই সার্ভার ব্যবহার করছে। আগে অন্য কাউকে অ্যাডমিন করুন।',
'Couldn’t delete the account. Nothing was removed.': 'অ্যাকাউন্ট মোছা যায়নি। কিছুই সরানো হয়নি।',
'Your account is gone. Thanks for every rep.': 'আপনার অ্যাকাউন্ট মুছে গেছে। প্রতিটি রেপের জন্য ধন্যবাদ।',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'এই অ্যাপ পাসকি দিয়ে নিশ্চিত করতে পারে না। ব্রাউজারে openGym থেকে আপনার অ্যাকাউন্ট মুছুন, অথবা আগে সেখানে একটি পাসওয়ার্ড যোগ করুন।',
+ 'Confirm it’s you to delete your openGym account': 'আপনার openGym অ্যাকাউন্ট মুছতে নিশ্চিত করুন যে এটি আপনি',
+ 'Not confirmed on this phone. Nothing was deleted.': 'এই ফোনে নিশ্চিত হয়নি। কিছুই মোছা হয়নি।',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'এই ফোনে কোনো স্ক্রিন লক নেই, তাই আপনার লেখা নামটিই একমাত্র যাচাই।',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'আপনার ফোন যাচাই করবে এটি আপনি কি না (মুখ, আঙুলের ছাপ বা পাসকোড), তারপর অ্যাকাউন্ট মুছে যাবে।',
}
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 4413e3c65..179db4bb1 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -2275,5 +2275,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Du bist hier der einzige Admin, und andere Profile nutzen diesen Server noch. Mach zuerst jemand anderen zum Admin.',
'Couldn’t delete the account. Nothing was removed.': 'Das Konto konnte nicht gelöscht werden. Es wurde nichts entfernt.',
'Your account is gone. Thanks for every rep.': 'Dein Konto ist weg. Danke für jede Wiederholung.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Diese App kann nicht mit einem Passkey bestätigen. Lösch dein Konto in openGym im Browser, oder leg dort zuerst ein Passwort fest.',
+ 'Confirm it’s you to delete your openGym account': 'Bestätige, dass du es bist, um dein openGym-Konto zu löschen',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Auf diesem Handy nicht bestätigt. Es wurde nichts gelöscht.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Dieses Handy hat keine Bildschirmsperre, also ist der eingegebene Name die einzige Prüfung.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Dein Handy prüft, ob du es bist (Gesicht, Fingerabdruck oder Code), dann wird das Konto gelöscht.',
}
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index c28d4e6d7..52974b65e 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Eres el único administrador aquí y otros perfiles siguen usando este servidor. Haz administrador a otra persona primero.',
'Couldn’t delete the account. Nothing was removed.': 'No se pudo eliminar la cuenta. No se borró nada.',
'Your account is gone. Thanks for every rep.': 'Tu cuenta ya no existe. Gracias por cada repetición.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Esta app no puede confirmar con una passkey. Elimina tu cuenta desde openGym en tu navegador, o añade allí una contraseña primero.',
+ 'Confirm it’s you to delete your openGym account': 'Confirma que eres tú para eliminar tu cuenta de openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'No se confirmó en este teléfono. No se eliminó nada.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Este teléfono no tiene bloqueo de pantalla, así que el nombre que escribiste es la única comprobación.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Tu teléfono comprueba que eres tú (cara, huella o código) y luego se elimina la cuenta.',
}
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index d940b4400..cde88112e 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Tu es le seul admin ici, et d’autres profils utilisent encore ce serveur. Nomme d’abord quelqu’un d’autre admin.',
'Couldn’t delete the account. Nothing was removed.': 'Impossible de supprimer le compte. Rien n’a été effacé.',
'Your account is gone. Thanks for every rep.': 'Ton compte n’existe plus. Merci pour chaque répétition.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Cette app ne peut pas confirmer avec une passkey. Supprime ton compte depuis openGym dans ton navigateur, ou ajoute d’abord un mot de passe là-bas.',
+ 'Confirm it’s you to delete your openGym account': 'Confirme que c’est toi pour supprimer ton compte openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Pas confirmé sur ce téléphone. Rien n’a été supprimé.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Ce téléphone n’a pas de verrouillage d’écran, donc le nom tapé est la seule vérification.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Ton téléphone vérifie que c’est bien toi (visage, empreinte ou code), puis le compte est supprimé.',
}
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index af2a6f6ab..3b2e92a97 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'आप यहाँ के अकेले एडमिन हैं, और दूसरी प्रोफ़ाइलें अभी भी यह सर्वर इस्तेमाल करती हैं। पहले किसी और को एडमिन बनाएँ।',
'Couldn’t delete the account. Nothing was removed.': 'खाता हटाया नहीं जा सका। कुछ भी नहीं हटाया गया।',
'Your account is gone. Thanks for every rep.': 'आपका खाता हट गया। हर रेप के लिए धन्यवाद।',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'यह ऐप पासकी से पुष्टि नहीं कर सकता। ब्राउज़र में openGym से अपना खाता हटाएँ, या पहले वहाँ एक पासवर्ड जोड़ें।',
+ 'Confirm it’s you to delete your openGym account': 'अपना openGym खाता हटाने के लिए पुष्टि करें कि यह आप हैं',
+ 'Not confirmed on this phone. Nothing was deleted.': 'इस फ़ोन पर पुष्टि नहीं हुई। कुछ भी नहीं हटाया गया।',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'इस फ़ोन पर कोई स्क्रीन लॉक नहीं है, इसलिए आपका लिखा नाम ही एकमात्र जाँच है।',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'आपका फ़ोन जाँचेगा कि यह आप हैं (चेहरा, फ़िंगरप्रिंट या पासकोड), फिर खाता हट जाएगा।',
}
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index c8fb6b2f1..63834372f 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -2258,5 +2258,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Te vagy itt az egyetlen admin, és más profilok még használják ezt a szervert. Előbb tegyél meg valaki mást adminnak.',
'Couldn’t delete the account. Nothing was removed.': 'Nem sikerült törölni a fiókot. Semmi sem lett eltávolítva.',
'Your account is gone. Thanks for every rep.': 'A fiókod eltűnt. Köszönjük az összes ismétlést.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Ez az app nem tud jelszókulccsal megerősíteni. Töröld a fiókod az openGymben a böngészőből, vagy előbb adj meg ott egy jelszót.',
+ 'Confirm it’s you to delete your openGym account': 'Erősítsd meg, hogy te vagy, az openGym-fiókod törléséhez',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Ezen a telefonon nem lett megerősítve. Semmi sem törlődött.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Ezen a telefonon nincs képernyőzár, így a beírt név az egyetlen ellenőrzés.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'A telefonod ellenőrzi, hogy te vagy-e (arc, ujjlenyomat vagy kód), aztán törlődik a fiók.',
}
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index d754cdf68..dafdcf6e8 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Sei l’unico admin qui e altri profili usano ancora questo server. Prima nomina admin qualcun altro.',
'Couldn’t delete the account. Nothing was removed.': 'Impossibile eliminare l’account. Non è stato rimosso nulla.',
'Your account is gone. Thanks for every rep.': 'Il tuo account non c’è più. Grazie per ogni ripetizione.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Questa app non può confermare con una passkey. Elimina l’account da openGym nel browser, oppure aggiungi prima lì una password.',
+ 'Confirm it’s you to delete your openGym account': 'Conferma che sei tu per eliminare il tuo account openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Non confermato su questo telefono. Non è stato eliminato nulla.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Questo telefono non ha un blocco schermo, quindi il nome che hai scritto è l’unico controllo.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Il telefono controlla che sei tu (volto, impronta o codice), poi l’account viene eliminato.',
}
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index cfa26175b..0ec356dd2 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': '이 서버의 유일한 관리자인데 다른 프로필이 아직 사용 중이에요. 먼저 다른 사람을 관리자로 지정하세요.',
'Couldn’t delete the account. Nothing was removed.': '계정을 삭제하지 못했어요. 아무것도 지워지지 않았어요.',
'Your account is gone. Thanks for every rep.': '계정이 삭제됐어요. 모든 반복에 감사해요.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': '이 앱에서는 패스키로 확인할 수 없어요. 브라우저의 openGym에서 계정을 삭제하거나, 먼저 그곳에서 비밀번호를 추가하세요.',
+ 'Confirm it’s you to delete your openGym account': 'openGym 계정을 삭제하려면 본인임을 확인하세요',
+ 'Not confirmed on this phone. Nothing was deleted.': '이 휴대폰에서 확인되지 않았어요. 아무것도 삭제되지 않았어요.',
+ 'This phone has no screen lock, so the name you typed is the only check.': '이 휴대폰에는 화면 잠금이 없어서 입력한 이름이 유일한 확인이에요.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': '휴대폰이 본인인지 확인한 뒤(얼굴, 지문 또는 암호) 계정을 삭제해요.',
}
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index 570b6b97e..2f3bd6b25 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Jesteś tu jedynym administratorem, a inne profile wciąż korzystają z tego serwera. Najpierw zrób administratorem kogoś innego.',
'Couldn’t delete the account. Nothing was removed.': 'Nie udało się usunąć konta. Nic nie zostało usunięte.',
'Your account is gone. Thanks for every rep.': 'Twojego konta już nie ma. Dzięki za każde powtórzenie.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Ta aplikacja nie może potwierdzić kluczem dostępu. Usuń konto w openGym w przeglądarce albo najpierw ustaw tam hasło.',
+ 'Confirm it’s you to delete your openGym account': 'Potwierdź, że to Ty, aby usunąć konto openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Nie potwierdzono na tym telefonie. Nic nie zostało usunięte.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Ten telefon nie ma blokady ekranu, więc wpisana nazwa to jedyne sprawdzenie.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Telefon sprawdzi, czy to Ty (twarz, odcisk palca lub kod), a potem konto zostanie usunięte.',
}
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index c7816509d..69dde8e87 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -1415,7 +1415,10 @@ export const PT_BR_OVERRIDES = {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Você é o único administrador aqui e outros perfis ainda usam este servidor. Torne outra pessoa administradora primeiro.',
'Couldn’t delete the account. Nothing was removed.': 'Não foi possível excluir a conta. Nada foi removido.',
'Your account is gone. Thanks for every rep.': 'Sua conta não existe mais. Obrigado por cada repetição.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Este aplicativo não consegue confirmar com uma chave de acesso. Exclua sua conta no openGym pelo navegador, ou adicione uma senha lá primeiro.',
+ 'Confirm it’s you to delete your openGym account': 'Confirme que é você para excluir sua conta do openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Não foi confirmado neste celular. Nada foi excluído.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Este celular não tem bloqueio de tela, então o nome que você digitou é a única verificação.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Seu celular confirma que é você (rosto, digital ou senha) e depois a conta é excluída.',
}
export default { ...pt, ...PT_BR_OVERRIDES }
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index d5e398a31..e0faeb0f9 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'És o único administrador aqui e outros perfis ainda usam este servidor. Torna outra pessoa administradora primeiro.',
'Couldn’t delete the account. Nothing was removed.': 'Não foi possível eliminar a conta. Nada foi removido.',
'Your account is gone. Thanks for every rep.': 'A tua conta já não existe. Obrigado por cada repetição.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Esta app não consegue confirmar com uma passkey. Elimina a tua conta no openGym pelo navegador, ou adiciona lá uma palavra-passe primeiro.',
+ 'Confirm it’s you to delete your openGym account': 'Confirma que és tu para eliminar a tua conta openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Não confirmado neste telemóvel. Nada foi eliminado.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Este telemóvel não tem bloqueio de ecrã, por isso o nome que escreveste é a única verificação.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'O telemóvel confirma que és tu (rosto, impressão digital ou código) e depois a conta é eliminada.',
}
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 92ca31702..daa98d9e4 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -2259,5 +2259,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Вы здесь единственный администратор, а другие профили ещё пользуются этим сервером. Сначала назначьте администратором кого-то другого.',
'Couldn’t delete the account. Nothing was removed.': 'Не удалось удалить аккаунт. Ничего не удалено.',
'Your account is gone. Thanks for every rep.': 'Ваш аккаунт удалён. Спасибо за каждое повторение.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Это приложение не может подтвердить ключом доступа. Удалите аккаунт в openGym через браузер или сначала задайте там пароль.',
+ 'Confirm it’s you to delete your openGym account': 'Подтвердите, что это вы, чтобы удалить аккаунт openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Не подтверждено на этом телефоне. Ничего не удалено.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'На этом телефоне нет блокировки экрана, поэтому введённое имя будет единственной проверкой.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Телефон проверит, что это вы (лицо, отпечаток или код), а затем аккаунт будет удалён.',
}
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 9b3a48e18..5c30aec82 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -2266,5 +2266,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'คุณเป็นผู้ดูแลระบบคนเดียวที่นี่ และยังมีโปรไฟล์อื่นใช้เซิร์ฟเวอร์นี้อยู่ ตั้งคนอื่นเป็นผู้ดูแลระบบก่อน',
'Couldn’t delete the account. Nothing was removed.': 'ลบบัญชีไม่สำเร็จ ไม่มีอะไรถูกลบ',
'Your account is gone. Thanks for every rep.': 'บัญชีของคุณถูกลบแล้ว ขอบคุณสำหรับทุกเรป',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'แอปนี้ยืนยันด้วยพาสคีย์ไม่ได้ ลบบัญชีจาก openGym ในเบราว์เซอร์ หรือเพิ่มรหัสผ่านที่นั่นก่อน',
+ 'Confirm it’s you to delete your openGym account': 'ยืนยันว่าเป็นคุณเพื่อลบบัญชี openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'ยืนยันบนโทรศัพท์นี้ไม่สำเร็จ ไม่มีอะไรถูกลบ',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'โทรศัพท์นี้ไม่มีการล็อกหน้าจอ ชื่อที่คุณพิมพ์จึงเป็นการตรวจสอบเดียว',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'โทรศัพท์จะตรวจสอบว่าเป็นคุณ (ใบหน้า ลายนิ้วมือ หรือรหัสผ่าน) แล้วจึงลบบัญชี',
}
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index f2c85700c..225415043 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Buradaki tek yönetici sensin ve başka profiller bu sunucuyu hâlâ kullanıyor. Önce başka birini yönetici yap.',
'Couldn’t delete the account. Nothing was removed.': 'Hesap silinemedi. Hiçbir şey kaldırılmadı.',
'Your account is gone. Thanks for every rep.': 'Hesabın silindi. Her tekrar için teşekkürler.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Bu uygulama geçiş anahtarıyla onaylayamaz. Hesabını tarayıcıda openGym’den sil ya da önce orada bir parola ekle.',
+ 'Confirm it’s you to delete your openGym account': 'openGym hesabını silmek için sen olduğunu onayla',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Bu telefonda onaylanmadı. Hiçbir şey silinmedi.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'Bu telefonda ekran kilidi yok, bu yüzden yazdığın ad tek kontrol.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Telefonun sen olduğunu kontrol eder (yüz, parmak izi ya da kod), sonra hesap silinir.',
}
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 638bf0b26..bfab7798c 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -2252,5 +2252,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': 'Ви тут єдиний адміністратор, а інші профілі ще користуються цим сервером. Спершу призначте адміністратором когось іншого.',
'Couldn’t delete the account. Nothing was removed.': 'Не вдалося видалити акаунт. Нічого не видалено.',
'Your account is gone. Thanks for every rep.': 'Ваш акаунт видалено. Дякуємо за кожне повторення.',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': 'Цей застосунок не може підтвердити ключем доступу. Видаліть акаунт в openGym через браузер або спершу задайте там пароль.',
+ 'Confirm it’s you to delete your openGym account': 'Підтвердьте, що це ви, щоб видалити акаунт openGym',
+ 'Not confirmed on this phone. Nothing was deleted.': 'Не підтверджено на цьому телефоні. Нічого не видалено.',
+ 'This phone has no screen lock, so the name you typed is the only check.': 'На цьому телефоні немає блокування екрана, тож введена назва буде єдиною перевіркою.',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': 'Телефон перевірить, що це ви (обличчя, відбиток або код), а потім акаунт буде видалено.',
}
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index 2ca9dc667..9f862bfcd 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -2248,5 +2248,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': '你是這裡唯一的管理員,而且還有其他個人檔案在使用此伺服器。請先讓其他人成為管理員。',
'Couldn’t delete the account. Nothing was removed.': '無法刪除帳號。沒有刪除任何內容。',
'Your account is gone. Thanks for every rep.': '你的帳號已刪除。感謝每一次訓練。',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': '此 App 無法以通行密鑰確認。請在瀏覽器中的 openGym 刪除帳號,或先在那裡設定密碼。',
+ 'Confirm it’s you to delete your openGym account': '確認是你本人,以刪除你的 openGym 帳號',
+ 'Not confirmed on this phone. Nothing was deleted.': '未在此手機上確認。沒有刪除任何內容。',
+ 'This phone has no screen lock, so the name you typed is the only check.': '此手機沒有螢幕鎖定,所以你輸入的名稱是唯一的驗證。',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': '手機會先確認是你本人(臉孔、指紋或密碼),然後刪除帳號。',
}
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index b0f4d6ac4..7ac4ef56a 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -2255,5 +2255,8 @@ export default {
'You’re the only admin here, and other profiles still use this server. Make someone else an admin first.': '你是这里唯一的管理员,而且还有其他档案在使用此服务器。请先让其他人成为管理员。',
'Couldn’t delete the account. Nothing was removed.': '无法删除账号。没有删除任何内容。',
'Your account is gone. Thanks for every rep.': '你的账号已删除。感谢每一次训练。',
- 'This app can’t confirm with a passkey. Delete your account from openGym in your browser, or add a password there first.': '此应用无法用通行密钥确认。请在浏览器中的 openGym 删除账号,或先在那里设置密码。',
+ 'Confirm it’s you to delete your openGym account': '确认是你本人,以删除你的 openGym 账号',
+ 'Not confirmed on this phone. Nothing was deleted.': '未在此手机上确认。没有删除任何内容。',
+ 'This phone has no screen lock, so the name you typed is the only check.': '此手机没有屏幕锁,所以你输入的名称是唯一的验证。',
+ 'Your phone checks that it’s you (face, fingerprint or passcode), then the account is deleted.': '手机会先确认是你本人(面容、指纹或密码),然后删除账号。',
}