Enhance OTP type detection

This commit is contained in:
Bubka
2020-11-05 22:50:49 +01:00
parent d448ed9122
commit 544e916d60
4 changed files with 38 additions and 17 deletions

View File

@@ -142,8 +142,7 @@ class TwoFAccountController extends Controller
throw $e;
}
if( $twofaccount->type === 'hotp' ) {
if( $twofaccount->otpType === 'hotp' ) {
// HOTP can be desynchronized from the verification
// server so we let the user the possibility to force