Describe the bug
A clear and concise description of what the bug is.
When a user submits a password that has leading or trailing spaces it is still accepted, whereas we trim the password in the login activity so it would be impossible for a user to sign if they have leading/trailing spaces.
To Reproduce
Steps to reproduce the behavior:
" Pass word!!1 " without the quotes ("")Expected behavior
A clear and concise description of what you expected to happen.
Expected behavior needs to be discussed here as possible expected behaviors
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
This can only be observed with new accounts as the change password endpoint does not allow spaces in new password.
This could also be a backend issue. (Can't find such any active issue related to this on the backend repo either)
Can I work on this issue @isabelcosta ?
Can I work on this issue @isabelcosta ?
We will need to decide what needs to be done first and I was actually hoping I could work on this. 馃槄
is it open??
if it is can I work on it??
Sir can I resolve this issue? @epicadk
@priyanka0906 @aakarshvats638 please mention this issue on zulip and once it's approved I'm sure you will be assigned. 馃槉
@Priyansh-Kedia this issue can be assigned to you but did you discuss about this issue with the admin what's expected behaviour?
@epicadk thank you for creating this issue :) 馃憦 馃帀
This is valid, however, we should take a look at what are the rules used to validate the password format, and use that same rules while validating this on the frontend android. Could someone take a look at how this is done on the backend?
@isabelcosta I had raised this issue on the backend repo and it has been merged.
@epicadk ok so now Android app should respond with an error message if someone tries to put an empty password right? Now we can also add a check on the frontend, to avoid sending the request to the server if we detect the password is invalid (according to same rules in backend)
@epicadk ok so now Android app should respond with an error message if someone tries to put an empty password right? Now we can also add a check on the frontend, to avoid sending the request to the server if we detect the password is invalid (according to same rules in backend)
Hmm yes I agree I'll modify the issue