Skip to content

Commit

Permalink
Merge pull request #45 from TeskaLabs/fix/registration-password-name
Browse files Browse the repository at this point in the history
Rename password field in registration form
  • Loading branch information
byewokko authored Jun 24, 2024
2 parents a74c5b8 + eba37c2 commit 03b4128
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions src/modules/auth/containers/RegistrationCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 03b4128

Please sign in to comment.