DarkGhostHunter / Laraguard

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

Control by Admin user #58

Closed abdosaeedelhassan closed 3 years ago

abdosaeedelhassan commented 3 years ago

firstly thank you for Laraguard it is a great work. sometimes need admin users control other users guard like update recovery codes or disable tow factor recovery from specific user, is there any plan to do something like this?, i can help in this upgrade work, thank you

DarkGhostHunter commented 3 years ago

It's outside the scope of the package, but you can always create your own admin panel for that with a few controllers:

public controller reset(User $user)
{
    $user->generateRecoveryCodes();

    $user->notify(new GeneratedRecoveryCodes());

    return back();
}
abdosaeedelhassan commented 3 years ago

Thank you