Skip to content

Commit

Permalink
modified adduser post
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289029 committed Apr 7, 2024
1 parent 664ad74 commit c2fe215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/userservice/user-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ app.post('/adduser', async (req, res) => {
// Check if required fields are present in the request body
validateRequiredFields(req, ['username', 'password']);

const newUsername = req.body.username;
const newUsername = req.body.username.toString();
const newPassword = req.body.password;

validateStrongPassword(newPassword);
Expand Down

0 comments on commit c2fe215

Please # to comment.