feat: implement premium Email 2FA authentication integrated with auth flow

This commit is contained in:
2026-05-21 21:46:53 +07:00
parent a0673129ee
commit 0d083765ff
50 changed files with 543 additions and 162 deletions
@@ -41,6 +41,7 @@ class SettingsController extends Controller
'enabled' => $twoFactorEnabled,
'qr_code' => $qrCode,
'secret' => $secret,
'email_enabled' => (bool)$user->email_2fa_enabled,
'recovery_codes' => $user->two_factor_recovery_codes
? json_decode($user->two_factor_recovery_codes, true)
: [],