Welcome Guest, Not a member yet? Register   Sign In
Mythauth - update password form
#6

(This post was last modified: 03-22-2021, 10:40 PM by ikesela.)

use given user entity class to  get hash of new password.
Code:
$entity = new User();
$newPassword = $this->request->getPost('new_password');
$entity->setPassword($newPassword);
$hash  = $entity->password_hash;
$users->update($id,['password_hash' => $hash]);
Reply


Messages In This Thread
Mythauth - update password form - by schwaluck - 03-21-2021, 08:02 AM
RE: Mythauth - update password form - by InsiteFX - 03-21-2021, 08:49 PM
RE: Mythauth - update password form - by InsiteFX - 03-22-2021, 10:43 AM
RE: Mythauth - update password form - by ikesela - 03-22-2021, 10:37 PM
RE: Mythauth - update password form - by fuzna28 - 03-31-2021, 08:49 AM
RE: Mythauth - update password form - by fuzna28 - 04-02-2021, 06:43 AM
RE: Mythauth - update password form - by kilishan - 06-21-2021, 07:09 AM
RE: Mythauth - update password form - by ikesela - 06-21-2021, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB