-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
User validation (Fixes #1996) #2169
Conversation
Generated by 🚫 Danger |
Will this do? |
@Ankit-Singla Just remove the commits of email validation and rebase it with plots master. if you need help doing so you can ask! |
@namangupta01 Why do I need to remove commits? And how can I do that? |
@namangupta01 |
For removing commits you can type |
0c86186
to
60a11f1
Compare
@SidharthBansal Please review this pull request. |
This is working perfectly here http://rubular.com/r/Pyb899szdt |
This looks great! But i wanted to note -- what about non-latin characters? Sorry because this is pretty tough, but consider: What do you think? |
@jywarren We can use POSIX bracket expressions to solve this issue. Sorry that I wasn't careful this time. Therefore, a better regex would be |
@ViditChitkara what do you think? This looks good to me! |
Looks super!! :+1 |
Looks good to me too |
@jywarren So I have made the required changes to include non-latin characters in email validation. Please review the pull request. |
This is an odd error in Travis:
https://travis-ci.org/publiclab/plots2/builds/337619181#L3377 I think we have a problem in our Dangerfile that's preventing it from reporting out the error correctly. |
password: 'test1234', | ||
password_confirmation: 'test1234', | ||
email: 'ankit@gmail') | ||
assert_not user.save({}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! Oops, you forgot an end
here -- that should fix it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ankit-Singla everything all right? I think adding end
will fix this and we'll be good to go. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Ankit-Singla -- no rush, just making sure you've seen this and if you need help we can pitch in! :-)
Issue fixed #2506 |
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
rake test:all
Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
We have a loose schedule of reviewing and pulling in changes every Tuesday and Friday, and publishing changes on Fridays. Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.
Thanks!