diff --git a/CHANGELOG.md b/CHANGELOG.md index 03deb8d..e4aba96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,18 @@ ### Releases -- v24.19-alpha2 +- v24.19-alpha3 +- ~~v24.19-alpha2~~ - v24.19-alpha ### Compatibility No breaking changes, tested with Seacat Auth v24.17-beta2 +### Fix + +- Rename password field in registration form (#45, v24.19-alpha3, PLUM Sprint 240531) + ### Features - Advanced password validation in new user registration form (#44, v24.19-alpha2, PLUM Sprint 240531) diff --git a/src/modules/auth/containers/RegistrationCard.js b/src/modules/auth/containers/RegistrationCard.js index abf82f0..44b3b03 100644 --- a/src/modules/auth/containers/RegistrationCard.js +++ b/src/modules/auth/containers/RegistrationCard.js @@ -28,8 +28,10 @@ function RegistrationCard(props) { filled input data (on press Save) */ const onSubmit = async (values) => { - let body = values; - delete body["password2"]; + const body = values; + body.password = values.newpassword; + delete body.newpassword; + delete body.newpassword2; Promise.all(Object.keys(body).map((key, i) => { if ((body[key] == undefined) || (body[key].length == 0)) { delete body[key];