]> BookStack Code Mirror - bookstack/commit
Added Backup code verification logic
authorDan Brown <redacted>
Mon, 2 Aug 2021 15:35:37 +0000 (16:35 +0100)
committerDan Brown <redacted>
Mon, 2 Aug 2021 15:35:37 +0000 (16:35 +0100)
commit459706908311101286dadb87a2f12afbf4192bbb
tree286b420e1dc77be2a2cf1e62040f24e0c052a79f
parenta3f19ebe96063eae54384fd56d2da8b66e625c14
Added Backup code verification logic

Also added testing to cover as part of this in addition to adding the
core backup code handling required.

Also added the standardised translations for switching mfa mode and
adding testing for this switching.
12 files changed:
app/Auth/Access/LoginService.php
app/Auth/Access/Mfa/BackupCodeService.php
app/Auth/Access/Mfa/MfaValue.php
app/Http/Controllers/Auth/MfaBackupCodesController.php
app/Http/Controllers/Auth/MfaController.php
resources/lang/en/auth.php
resources/lang/en/validation.php
resources/views/mfa/verify.blade.php
resources/views/mfa/verify/backup_codes.blade.php [new file with mode: 0644]
resources/views/mfa/verify/totp.blade.php
routes/web.php
tests/Auth/MfaVerificationTest.php