-
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
Added email verification (fixes #1996) #2164
Conversation
Generated by 🚫 Danger |
@Ankit-Singla Please also mention the issue number in the pr comment like fixes #1996 |
Otherwise it seems good! Nice @Ankit-Singla 👍 |
@Ankit-Singla Thanks for the pr. Can you please add a test? So that we can verify that if a user is trying to make an account through an email like |
The period after the + sign will match any character and that's not what we want. I think a backslash is needed here. You can also append an 'i' to make it case insensitive. |
Regarding testing, please see the last test in |
I have added the corresponding unit test as well and it runs fine. All three tasks have been completed. I have also merged the three commits into a single one. |
Please remove the changes which you have pushed just now. That needs to be tackled in other pr |
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.
Please remove the commits which you pushed just now for the issue #2150. Make a new pr for that issue
@SidharthBansal how can I do that? where do I need to go |
app/views/grids/_people.html.erb
Outdated
@@ -20,7 +20,7 @@ | |||
</tr> | |||
<% if index == 9 %> | |||
<tr class="show-all"> | |||
<td><a>Show <%= users.length - 10 %> more <b class="caret"></b></a></td> | |||
<td><a>Show <%= if(users.length>0)do users.length-10 + "more" else "less" end %> <b class="caret"></b></a></td> |
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.
if
is followed by do
here. I think you want to use then
instead of do
. Another option is to use the conditional operator.
Hi Ankit, you can use git reset hard to reset the HEAD to desired commit!! |
@ViditChitkara correct me if I'm wrong, but he will then lose all changes that come after the new HEAD. |
@Ankit-Singla I guess you have #2164 and #2169 for the same issue #1996 So this one is duplicate of #2169. |
I have closed this pull request as I made two PRs for the same issue, by mistake. |
Hi, thanks everyone for helping to untangle this, and @Ankit-Singla please don't worry, this can happen and we're here to help you figure it out! Part of this is because you're developing on your master branch. Using feature branches can help keep your submissions separate and is cleaner. See this for some guidance on this workflow, under "Github Flow": https://publiclab.org/wiki/developers#Resources For now, if you're sure you have these last few commits represented in other PRs, you should be good to do as @ViditChitkara points out to remove them. However, you may want to do Does that make sense? Once we get this sorted out, we can tackle some of the changes @seafr has requested, which I think are good. Thanks, and no worries! We'll figure it out! Thanks for your contribution! |
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!