DarkGhostHunter / Laraguard

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

Question - TOTP verification on demand #20

Closed illambo closed 4 years ago

illambo commented 4 years ago

Hi, first of all thank you for the excellent work. I was looking for a solution to verify an otp for certain operations (on demand), is it possible to trigger the otp verification flow manually or on custom events ? Maybe like laravel middleware password.confirm Thanks, regards

DarkGhostHunter commented 4 years ago

Nope, the package doesn't include that, but thanks for giving me the idea.

0x0range commented 4 years ago

Are you looking to implement this feature? It would be really usefull if you edit some kind of secret stuff. For example if you want to edit a private key you need to enter the otp code.

DarkGhostHunter commented 4 years ago

Yes, but not now. I would preferably check a PR than add it myself.

If I do it, it's gonna be very simple.

DarkGhostHunter commented 4 years ago

Plus: I will need some validation rules.

DarkGhostHunter commented 4 years ago

Available in 2.0, check it out.