-
Hello everyone. I store in database whether user wants email 2fa authentication. The question is simple, how can I apply this control in class? Sorry to my poor English. 🤗 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
For instance, I want to check user's email 2fa option. Like: if ($user->email2fa === true && $authenticator->hasAction()) {
return redirect()->route('auth-action-show')->withCookies();
} But it don't work like that. I think because sessions already set. @datamweb Thank you |
Beta Was this translation helpful? Give feedback.
-
Extend the |
Beta Was this translation helpful? Give feedback.
-
It is better to extend |
Beta Was this translation helpful? Give feedback.
Extend the
Email2FA
class so thatcreateIdentity()
does nothing and returns if$user->email2fa
is false.