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

(03-23-2021, 03:04 AM)schwaluck Wrote:
(03-22-2021, 10:37 PM)ikesela Wrote: 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]);

Hey ikesela,
actually an obvious solution, but I didn't think of it. Thank you , it works like a charm now! Smile

Have a nice day!
Hello,can i see your full source for change password ? Im so frustased right now because dont understand,thank you. Sorry for my bad english language.
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