I'm trying to change the password using the change_password method in SimpleAuth. In previous versions, I called the reset_password method and got a new password without a hash version, then I used that password as “old_password” to call change_password. I'm trying to change the password using the following steps: a) run the php oil console b) Auth::reset_password(“username”);
At this point, the following string:
Co9nb+qAGyv5KWowZDbunt6+8LSiIiinnboDP2ovX+Q=
is displayed as the new password, but this password is already a hashed value
And if I use it to change the user's password using the change_password method
c) Auth::change_password(“Co9nb+qAGyv5KWowZDbunt6+8LSiIiinnboDP2ovX+Q=”, “new_pwd”, “username”);
The following error message is displayed:
Parse Error - Call to a member function get() on array in myapplication\fuel\packages\auth\classes\auth\login\simpleauth.php on line 351
My question is: how can I change the user's password using the console?