I am using sentry2 as a ACL bundle for my project in laravel 4.
I have a 'super admin' user who manages every user and can edit their details. I want that the super admin should also be able to change the password for a particular user.
I know, i can use the reset password feature which will send the reset code to that user, but its not exactly what i need.
Have any one use such functionality ?
Thanks in advance, Nikhil
After getting the new pass input, let's call it $newPass, it's as easy as:
$user = Sentry::getUserProvider()->findById(1);
$user->password = $newPass;
$user->save();