Page 1 of 1

nuBuilder 4 - Self-Service Password Reset - NOT WORKING

Posted: Fri Jun 11, 2021 10:23 pm
by icoso
I just tried to setup the password recovery code found here:

https://github.com/smalos/nubuilder-password-recovery

I followed ALL the instructions.

Now when I login I constantly get a yellow box that states: "You must be logged into Database Portal." This affects every user that logs into the portal. I even remarked back out the $nuWelcomeBodyInnerHTML section in my nuconfig.php file.

Why would I be getting this error message?

Re: nuBuilder 4 - Self-Service Password Reset - NOT WORKING

Posted: Fri Jun 11, 2021 10:29 pm
by icoso
I restored my original nuconfig.php file, then just modified the section to add in the forgot/change password link. Its working now.

Re: nuBuilder 4 - Self-Service Password Reset - NOT WORKING

Posted: Fri Jun 11, 2021 10:45 pm
by kev1n
BTW, I had to replace this line

Code: Select all

$this->password = htmlspecialchars(strip_tags($this->password));
with

Code: Select all

$this->password = $this->password;
Because it converts some special characters (like & ) to HTML entities ( e.g. &). As a result, the password won't be accepted when logging in.