[3.0]: Undefined array key "passwrd1" when changing password
Basic Information
Undefined array key "passwrd1" in Sources/Profile.php, line 2170
Steps to reproduce
- Type a new password
- Type current password
- Save
Expected result
No response
Actual result
No response
Version/Git revision
3.1 Alpha 1
Database Engine
All
Database Version
No response
PHP Version
8.0.30
Logs
No response
Additional Information
No response
I was actually still on #7853
Well it turns out I can still reproduce it. It's inconsistent however, hopefully someone else can also reproduce this...
And sometimes the 'Current Password' field doesn't show up, I'm a bit confused with this one.
See this for example.
I tried to change the password and all three inputs are correct, but the return is this field in red, no error, what does it mean?
@Sesquipedalian I can reproduct this as well
// Set the save variable.
$this->new_data[$db_key] = $_POST[$key];
// And update the user profile.
$this->data[$key] = $this->new_data[$key];
Seems that $db_key is passwd and $key is passwd1. $this->new_data[$db_key] and $this->data[$key] do not exist. However $_POST[$key] exists and has the encrypted password.