Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0]: Undefined array key "passwrd1" when changing password #8055

Closed
DiegoAndresCortes opened this issue Jan 29, 2024 · 4 comments · Fixed by #8226
Closed

[3.0]: Undefined array key "passwrd1" when changing password #8055

DiegoAndresCortes opened this issue Jan 29, 2024 · 4 comments · Fixed by #8226

Comments

@DiegoAndresCortes
Copy link
Contributor

Basic Information

Undefined array key "passwrd1" in Sources/Profile.php, line 2170

Steps to reproduce

  1. Type a new password
  2. Type current password
  3. 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

@DiegoAndresCortes
Copy link
Contributor Author

I was actually still on #7853

@DiegoAndresCortes
Copy link
Contributor Author

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.

@DiegoAndresCortes
Copy link
Contributor Author

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?
Screenshot_324

@jdarwood007 jdarwood007 added this to the 3.0 Alpha 2 milestone Jan 29, 2024
@jdarwood007
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants