smswithoutborders / RelaySMS-Vault

Technology developed by the SMSWithoutBorders team to securely store and manage user access tokens, enabling safe usage for publishing messages.
GNU General Public License v3.0
13 stars 3 forks source link

Account deletion throws 401 if password is wrong #29

Closed nSedrickm closed 2 years ago

nSedrickm commented 2 years ago

When deleting an account, a password is required for confirmation. If the password is wrong, a 401 is thrown resulting in the user being logged out by the app instead.

A 403 would be better since the password failed validation

PromiseFru commented 2 years ago

@nSedrickm please are you on the latest commit head of dev branch ?

PromiseFru commented 2 years ago

Thank you for pointing this out @nSedrickm. This is now fixed https://github.com/smswithoutborders/SMSwithoutborders-BE/commit/12b5e9c1b62538cf20bebb9d701a0aac199185c4

I'll be closing this now :nerd_face: