Page 1 of 2

Error occurs when changing user password

Posted: Thu Jan 20, 2022 12:29 am
by gerese
Hi,
In version V.4.5-2022.01.19.02 , a nuDebug error occurs when changing user password. The password generated, in the database is md5, although in nuconfig.php the parameter "$nuUseMd5PasswordHash = false;" is set to false.

Re: Error occurs when changing user password

Posted: Thu Jan 20, 2022 1:36 am
by kev1n
Is you db up-to-date? No error occurs here.

Re: Error occurs when changing user password

Posted: Thu Jan 20, 2022 10:24 am
by gerese
Hi,
I tested on a clean installation.
DB Version: V.4.5-2022.01.18.00
Files Version: V.4.5-2022.01.19.02
Apache Version: 2.4.46
PHP Version: 7.4.9
MariaDB Version: 10.5.12
WAMP Version 3.2.5 - 64bit
user error.gif

Re: Error occurs when changing user password

Posted: Thu Jan 20, 2022 10:45 am
by kev1n
I first assumed that the problem occurs when the user changes a password himself.
I just tested it with an old nu 4.0 version. The problem already occurred there.

Re: Error occurs when changing user password

Posted: Thu Jan 20, 2022 10:51 am
by kev1n
I think this is fixed now.

Re: Error occurs when changing user password

Posted: Sat Jan 22, 2022 10:27 pm
by gerese
Hi,
I have the same error only when the user logged in to his page changes his password himself. With or without checkPasswordPolicy same result.

Re: Error occurs when changing user password

Posted: Sun Jan 23, 2022 6:59 am
by kev1n
The error is only visible in "nuDebug Results" but the password is changed nonetheless.
I'm going to change the password dialog into a Launch form to get rid of that error.

Re: Error occurs when changing user password

Posted: Sun Jan 23, 2022 8:32 am
by gerese
Hi,
kev1n wrote: Sun Jan 23, 2022 6:59 am The error is only visible in "nuDebug Results" but the password is changed nonetheless.
True, but I have a devil :twisted: in my brain who won't let me live with the error. :lol:

Re: Error occurs when changing user password

Posted: Mon Jan 24, 2022 7:03 am
by kev1n
The change is now on Github. Please tests it. Thanks!

Re: Error occurs when changing user password

Posted: Mon Jan 24, 2022 1:58 pm
by gerese
Hello,
on a clean installation, it works without errors.
I updated to the current version, after the update I found that the "CHANGEPASSWORD" procedure is missing. I don't know why the "CHANGEPASSWORD" procedure was not copied to the database.
error_passw.jpg