|
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. 🤗 |
Answered by
kenjis
Nov 21, 2022
Replies: 4 comments 14 replies
|
Hello, |
0 replies
|
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 |
5 replies
|
Extend the |
4 replies
Answer selected by
d4f3dQnK
|
It is better to extend |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extend the
Email2FAclass so thatcreateIdentity()does nothing and returns if$user->email2fais false.