You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The save user controller requires the current password to update email, username or password. It correctly returns the error if currentPassword is not set or incorrect, although it requires an input called password is sent to the controller, but returns and error with the key currentPassword. Not sure if / why this is, as for us it's causing some complication when adding errors to forms using javascript.
Should it not be named the same password?
Steps to reproduce
Create a front end template profile form template, posting using ajax when requesting a password change but send invalid current password.
Check response.
Additional info
Craft version: 3.1.23
PHP version: 7.1.25
Database driver & version: MySQL 5.5.5
The text was updated successfully, but these errors were encountered:
samhibberd
changed the title
Save user returns currentPassword error key
Save user returns current password error with currentPassword key rather than passwordApr 23, 2019
samhibberd
changed the title
Save user returns current password error with currentPassword key rather than password
Save user returns current password error with currentPassword key rather than password
Apr 23, 2019
samhibberd
changed the title
Save user returns current password error with currentPassword key rather than password
Save user returning current password error with incorrect key?
Apr 23, 2019
samhibberd
changed the title
Save user returning current password error with incorrect key?
Save user controller returning current password error with incorrect key?
Apr 23, 2019
Description
The save user controller requires the current password to update email, username or password. It correctly returns the error if currentPassword is not set or incorrect, although it requires an input called
password
is sent to the controller, but returns and error with the keycurrentPassword
. Not sure if / why this is, as for us it's causing some complication when adding errors to forms using javascript.Should it not be named the same
password
?Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: