Skip to content

Commit

Permalink
Update status check in register method
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikkusan committed Mar 21, 2024
1 parent 6ebab76 commit a3eaab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FRONT/js/data/dao/AuthDao.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AuthDao extends Dao {
*/
async register(user) {
let resp = await this.post('/register', user);
if (resp.status === 200) {
if (resp.status === 201) {
return await resp.text();
}
}
Expand Down

0 comments on commit a3eaab9

Please sign in to comment.