Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password validator only shows invalid password on signup screen #1145

Closed
noman2002 opened this issue Jan 20, 2022 · 13 comments · Fixed by #1147
Closed

Password validator only shows invalid password on signup screen #1145

noman2002 opened this issue Jan 20, 2022 · 13 comments · Fixed by #1147
Assignees
Labels
bug Something isn't working

Comments

@noman2002
Copy link
Member

Describe the bug
Password validator on signup detail page only show invalid password in every condition.
Example: when the password is too short, when the password doesn't have Capital letters, when the password doesn't have special character.

To Reproduce
Steps to reproduce the behavior:

  1. Select Language
  2. Verify org url
  3. Click on signup
  4. Select Organization and click next
  5. Enter password and see the unexpected behavior.

Expected behavior
It should show "password is too short" when the length of password is short.
It should show "password doesn't contain special character" when a special character is not there.
It should show "password doesn't contain at least one capital/small letter" when it is not there is password.

Actual behavior
It only shows "invalid password" for every case.

Screenshots

Additional details
I am working on this issue please assign it to me.

@noman2002 noman2002 added the bug Something isn't working label Jan 20, 2022
@github-actions
Copy link

Congratulations on making your first Issue! 🎊 If you haven't already, check out our Contributing Guidelines and Issue Reporting Guidelines to ensure that you are following our guidelines for contributing and making issues.

@github-actions github-actions bot added invalid This doesn't seem right unapproved Unapproved, needs to be triaged labels Jan 20, 2022
@palisadoes
Copy link
Contributor

We only want the invalid password message to occur after hitting submit.

  • At that point we should state the password criteria.
  • The criteria will need to be translated to all spoken languages supported by the app.

This is the standard approach for most applications.

@palisadoes palisadoes removed the invalid This doesn't seem right label Jan 20, 2022
@palisadoes
Copy link
Contributor

Please confirm this methodology before I assign the issue to you.

@noman2002
Copy link
Member Author

Yes we can add the password criteria and it can be translated to all the languages supported by the app by using the same method through which we are translating the other elements of the app.

I am willing to work on this. Please assign it to me.

@palisadoes palisadoes removed the unapproved Unapproved, needs to be triaged label Jan 20, 2022
@ayushvrma
Copy link

@palisadoes can i work on this too? i feel like it'll be a good first issue for me

@noman2002
Copy link
Member Author

@palisadoes can i work on this too? i feel like it'll be a good first issue for me

Brother I am already working on it. You can take another issue please.

@palisadoes
Copy link
Contributor

@ayushvrma There are many "good first issues" to choose from. More than one person working on an issue has been unmanageable in the past. Please take a look. We need to get the reliability of the code improved, and so testing is very important to us now.

@palisadoes
Copy link
Contributor

@noman2002 Remember to write tests for your code.

@noman2002
Copy link
Member Author

@palisadoes I think there is no test for signup detail page. Do I have to write the whole test for the same. Also there is one open PR #1115 for the same. Do I have to wait for the PR to get merged and then I do changes accordingly.

@palisadoes
Copy link
Contributor

No need to write the whole test, but we need tests done. Please work with @ahluwaliatikant to figure out why the tests are failing. You can then merge your changes to the tests for this issue after his PR is merged.

@noman2002
Copy link
Member Author

I am done with fixing the password validator. Can I create a PR for that as it is my first contribution and I am very excited to created a PR. I will create another issue for the test and will write it when #1115 will be merged.

@palisadoes
Copy link
Contributor

OK

@noman2002
Copy link
Member Author

Thank you so much. I am creating the PR now.

palisadoes pushed a commit that referenced this issue Jan 22, 2022
…orted (#1147)

* added password validation criteria in all supported languages

* updated testcases in change_password_page.dart

* formatted change_password_page.test
Ayush0Chaudhary pushed a commit to Ayush0Chaudhary/talawa that referenced this issue Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants