Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: jsteel on April 06, 2019, 10:21:27 PM

Title: Users cannot reset their own passwords for their control panel
Post by: jsteel on April 06, 2019, 10:21:27 PM
Getting the message "User configuration does not exist." and the following error in /usr/local/cwpsrv/logs/error_log:

2019/04/06 15:10:18 [error] 13909#0: *411 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined variable: session_number in /usr/local/cwpsrv/var/services/users/login/index.php on line 0
PHP message: PHP Notice:  Undefined variable: session_number in /usr/local/cwpsrv/var/services/users/login/index.php on line 0" while reading response header from upstream, client: , server: localhost, request: "POST /login/index.php?acc=lostpass HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: ":2083", referrer: "https://:2083/login/"

Of course, this file just like most in this control panel is encrypted using ioncube so I can't debug further. Tried /scripts/cwpsrv_rebuild_user_conf and updating the panel. The user exists in /usr/local/cwpsrv/conf.d/users/ .
Title: Re: Users cannot reset their own passwords for their control panel
Post by: jsteel on April 06, 2019, 10:31:33 PM
This was on a brand new account. After I reset the account's password AND logged in as the user I was able to get the password reset working.