]> BookStack Code Mirror - bookstack/commit
Complete base flow for TOTP setup
authorDan Brown <redacted>
Wed, 30 Jun 2021 21:10:02 +0000 (22:10 +0100)
committerDan Brown <redacted>
Wed, 30 Jun 2021 21:10:02 +0000 (22:10 +0100)
commit916a82616f1e2c750a1f01109e65ad2b603a79ce
treeda397732c304fe54e5a73e040d77e642c7f02931
parentd25cd83d8e2a8741a6476ce2d7ff6efc728ecc6e
Complete base flow for TOTP setup

- Includes DB storage and code validation.
- Extracted TOTP work to its own service file.
- Still needs testing to cover this side of things.
12 files changed:
app/Actions/ActivityType.php
app/Auth/Access/Mfa/MfaValue.php [new file with mode: 0644]
app/Auth/Access/Mfa/TotpService.php [new file with mode: 0644]
app/Auth/Access/Mfa/TotpValidationRule.php [new file with mode: 0644]
app/Auth/User.php
app/Auth/UserRepo.php
app/Http/Controllers/Auth/MfaController.php
database/migrations/2021_06_30_173111_create_mfa_values_table.php [new file with mode: 0644]
resources/lang/en/activities.php
resources/lang/en/validation.php
resources/views/mfa/setup.blade.php
tests/Auth/MfaTotpTest.php [new file with mode: 0644]