confirm token in 2fa challenge

This commit is contained in:
Čarodej
2022-04-05 09:52:49 +02:00
parent 9f783fcd95
commit 10d8b592ea
13 changed files with 127 additions and 66 deletions
+3 -2
View File
@@ -36,8 +36,9 @@ class UserResource extends JsonResource
'avatar' => $this->settings->avatar,
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
'role' => $this->role,
'two_factor_authentication' => (bool) $this->two_factor_secret,
'socialite_account' => ! (bool) $this->password,
'two_factor_authentication' => (bool)$this->two_factor_secret,
'two_factor_confirmed_at' => $this->two_factor_confirmed_at,
'socialite_account' => !(bool)$this->password,
'storage' => $this->storage,
'created_at' => format_date($this->created_at, 'd. M. Y'),
'updated_at' => format_date($this->updated_at, 'd. M. Y'),