mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added translations for 2FA.
This commit is contained in:
parent
0c7a8bd85e
commit
96fa3be7cc
8 changed files with 1612 additions and 78 deletions
|
@ -69,7 +69,7 @@ class UserSettingsController extends AbstractController
|
|||
}
|
||||
|
||||
if (empty($user->getBackupCodes())) {
|
||||
$this->addFlash('error', 'You do not have any backup codes enabled, therefore you can not view them!');
|
||||
$this->addFlash('error', 'tfa_backup.no_codes_enabled');
|
||||
throw new Exception('You do not have any backup codes enabled, therefore you can not view them!');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue