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

Validate sign up form elements on page reload #8506

Merged
merged 2 commits into from
Oct 11, 2020

Conversation

cypherean
Copy link
Contributor

@cypherean cypherean commented Oct 9, 2020

Fixes #8463 (<=== Add issue number here)
Reinstates the changes of #7768
Validates the email and username elements of signup form on page reload when an error is faced during sign up. The error could be :

  1. Invalid spam check
  2. Duplicate username or email

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@gitpod-io
Copy link

gitpod-io bot commented Oct 9, 2020

@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #8506 into main will decrease coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8506      +/-   ##
==========================================
- Coverage   82.01%   81.89%   -0.12%     
==========================================
  Files         101      101              
  Lines        5894     5894              
==========================================
- Hits         4834     4827       -7     
- Misses       1060     1067       +7     
Impacted Files Coverage Δ
app/services/execute_search.rb 88.88% <0.00%> (-5.56%) ⬇️
app/api/srch/search.rb 66.87% <0.00%> (-3.83%) ⬇️

@codeclimate
Copy link

codeclimate bot commented Oct 9, 2020

Code Climate has analyzed commit 930e33f and detected 0 issues on this pull request.

View more on Code Climate.

@jywarren
Copy link
Member

jywarren commented Oct 9, 2020

This looks awesome. Does it show any errors on initial page load? Thanks!

@cypherean
Copy link
Contributor Author

@jywarren no it won't show any errors on initial page load, I fixed that.

Please try it out in gitpod and let me know if any changes are required. 😄

@jywarren
Copy link
Member

Awesome. Thanks so much for the fix!!!

@jywarren jywarren merged commit 1744399 into publiclab:main Oct 11, 2020
shubhangikori pushed a commit to shubhangikori/plots2 that referenced this pull request Oct 12, 2020
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
piyushswain pushed a commit to piyushswain/plots2 that referenced this pull request Oct 22, 2020
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
ampwang pushed a commit to ampwang/plots2 that referenced this pull request Oct 26, 2021
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* Validate sign up form elements on page reload

* Refactor validate condition to reduce complexity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Signup page captcha validation bug
2 participants