DarkGhostHunter / Laraguard

"On-premises 2FA Authentication for all your users out-of-the-box
MIT License
266 stars 24 forks source link

Attempt in Livewire component #57

Closed abdosaeedelhassan closed 3 years ago

abdosaeedelhassan commented 3 years ago

i have login page in livewire component when attempt username and password, it shown like follow https://www.loom.com/share/2c6bf95d7b1f4934823e7f6649520e55 my question how i can redirect to auth view manually or fired event to call check auth code view

abdosaeedelhassan commented 3 years ago

I solved my problem using 2fa.confirm middleware, thank you

aeq-dev commented 2 years ago

Hello @abdosaeedelhassan Could you please tell me how did you setup you login form and routes ? I want to ask user for the 2fa_code just after he successfully login same as you did in demo. Thanks

DarkGhostHunter commented 2 years ago

Use attemptWhen() on your Auth facade.