-
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
Add password confirmation success #3984
Conversation
Generated by 🚫 Danger |
Hi @kevinzluo, as the task you have solved is not claimed by you till now, so I would advice you to close this PR for now. Thanks! |
Ok thank you for your advice. |
757e389
to
fb587c9
Compare
You can neglect the checking of username and email as that would be checked once the submission would be done. Regarding captcha you can take some time with it. |
ah, you should be able to trick it either by running it in production
locally, or by changing this line:
https://github.com/publiclab/plots2/blob/5b55750e2a8001ed98e629ad31a1e78f51a4c642/app/views/users/_form.html.erb#L87
this is really cool! Do you think it needs to scroll you up when you show
errors, so people don't miss them?
…On Tue, Nov 20, 2018 at 9:14 PM kevinzluo ***@***.***> wrote:
I have added a check for spamaway completion as so:
[image: showspamawayvalidation]
<https://user-images.githubusercontent.com/44309027/48814447-60865780-ed00-11e8-9a98-639932faf029.gif>
I have also attempted to add a check for the google recaptcha completion
using data-callback and data-expired-callback, but I cannot know if it
works as the recaptcha doesn't appear when run in development mode.
Please let me know if I need to make any changes.
Thank you,
Kevin Luo
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJz-EfGNbT0PX3SwM8kCaf9nx9iQDks5uxLbSgaJpZM4YlOuv>
.
|
I'll try setting it to production right now! |
Leaving this here for anyone else who might want to test the recaptcha: At first when I changed the line to development, it gave an error saying there was no site key specified. Looking around online, I saw that you need to export the RECAPTCHA_SITE_KEY variable. It turns out you need to sign up for a recaptcha api key here: https://www.google.com/recaptcha/admin . In your supported domains add localhost or 127.0.0.1, depending on which you use. Then take the site key given and type |
This is great, but I'd like to ask that you try pushing it to the unstable branch for final testing, since this is a critical system. You can do this with |
I'm also a bit concerned at how long the file is getting. For the section that is just pure JavaScript, do you think you could follow the example: |
Yep. I actually tested including the javascript in a separate file myself, and I can put all the scripts I added into a file. Just to confirm, do I need to add my filename to application.js? I will try pushing to unstable as soon as I can in the morning. Thank you, |
c2b4c9a
to
f9b7163
Compare
@jywarren
EDIT: I looked into the
|
@publiclab/reviewers |
okay, i also use the same command Update: Use command which I just mentioned, looks like command given by @jywarren is not working. |
@gauravano
I think it is because I do not have write permissions on the repository. When I go to unstable.publiclab.org, it states that the build has failed. https://jenkins.laboratoriopublico.org/job/Plots-Unstable/343/console |
I was going through your work in this PR, it's really nice. This PR can be merged only after testing on If you want I can approve this task as I think there wouldn't be much issue on unstable or production. What do you say? |
Hi Gaurav,
Yesterday I interrupted a migration and left the database of Unstable in
a corrupted state. So I made a dump from production and set it to load
since last night but it's still not ready.
That's why the database says:
Mysql2::Error::ConnectionError: Can't connect to MySQL server on 'db' (111 "Connection refused")
The loading process is ongoing, thanks for your patience!
Regards,
Sebastian
…On 23/11/18 17:24, Gaurav Sachdeva wrote:
yes, actually i just pushed some other branches too on unstable and
all are failing. @jywarren <https://github.com/jywarren> @icarito
<https://github.com/icarito> could you look why it's happening. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS7DRJ37sEFfOCPMzjUuai5LUqxR9ks5uyHWrgaJpZM4YlOuv>.
|
Oh, that's fine. We can wait for some more time. Thanks!
On Sat 24 Nov, 2018, 5:25 AM Sebastian Silva, <notifications@github.com>
wrote:
… Hi Gaurav,
Yesterday I interrupted a migration and left the database of Unstable in
a corrupted state. So I made a dump from production and set it to load
since last night but it's still not ready.
That's why the database says:
Mysql2::Error::ConnectionError: Can't connect to MySQL server on 'db' (111
"Connection refused")
The loading process is ongoing, thanks for your patience!
Regards,
Sebastian
On 23/11/18 17:24, Gaurav Sachdeva wrote:
>
> yes, actually i just pushed some other branches too on unstable and
> all are failing. @jywarren <https://github.com/jywarren> @icarito
> <https://github.com/icarito> could you look why it's happening. Thanks!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#3984 (comment)>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAMMS7DRJ37sEFfOCPMzjUuai5LUqxR9ks5uyHWrgaJpZM4YlOuv
>.
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT6S9qzo2rG7fsNj3lGxSYnIL3-BotKSks5uyIsNgaJpZM4YlOuv>
.
|
@gauravano
That would be great! Thank you so much. |
@jywarren this task has been approved since most of the work is done on the issue and further testing requires testing on unstable branch which is currently unavailable to us. As Kevin has already spent many days on this one, I think, we can approve it without merging the PR. Thanks! |
Thanks! Just a note that Unstable is working since yesterday. Thanks for
your patience!
El sábado, 24 de noviembre de 2018, Gaurav Sachdeva <
notifications@github.com> escribió:
… @jywarren <https://github.com/jywarren> this task has been approved since
most of the work is done on the issue and further testing requires testing
on unstable branch which is currently unavailable to us. As Kevin has
already spent many days on this one, I think, we can approve it without
merging the PR. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMMS9eNnj3Orch0qjb-hwqCBtQLYEaoks5uyZ0KgaJpZM4YlOuv>
.
--
Sebastian Silva
http://somosazucar.org/
|
That's great. Thanks for the update @icarito. I will push this PR on
`unstable` tonight.
…On Sun, Nov 25, 2018 at 8:03 PM Sebastian Silva ***@***.***> wrote:
Thanks! Just a note that Unstable is working since yesterday. Thanks for
your patience!
El sábado, 24 de noviembre de 2018, Gaurav Sachdeva <
***@***.***> escribió:
> @jywarren <https://github.com/jywarren> this task has been approved
since
> most of the work is done on the issue and further testing requires
testing
> on unstable branch which is currently unavailable to us. As Kevin has
> already spent many days on this one, I think, we can approve it without
> merging the PR. Thanks!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#3984 (comment)>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AAMMS9eNnj3Orch0qjb-hwqCBtQLYEaoks5uyZ0KgaJpZM4YlOuv
>
> .
>
--
Sebastian Silva
http://somosazucar.org/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT6S9r2qJnZZMKCGkkS6X2IvqhEI3Nxxks5uyqpEgaJpZM4YlOuv>
.
|
@jywarren I will try fixing the password match part too. Currently the warnings will stop the submit button from working until the errors are fixed. Would you like me to disable that? |
How about just to add some security, we say that it stops submit the first
click, but if you click again, it'll submit. That way there is a fallback
if, for whatever reason, the validation fails. How does that sound?
…On Fri, Dec 7, 2018 at 12:52 PM kevinzluo ***@***.***> wrote:
@jywarren <https://github.com/jywarren>
My apologies, I just removed the "Sorry" section. I will revert that
change now.
I will try fixing the password match part too.
Currently the warnings will stop the submit button from working until the
errors are fixed. Would you like me to disable that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJwtEIa9ARjEqVGYLrWHYXXwqoBrgks5u2qqxgaJpZM4YlOuv>
.
|
Sure, that sound great! I will try implementing it now. |
I have implemented some changes that I believe will work. Pushing to |
I have tested out the updated form, and everything seems to be working as expected 😄 . The concerning thing is that an error is given (not by my javascript, but by the server side validation) about being unable to validate the reCaptcha even when the reCaptcha is pressed and the checkmark appears. I tested this out on stable.publiclab.org and the same error occurs, so I do not think this was an issue created by my additions. Feel free to test it out at https://unstable.publiclab.org/signup .
I have set it so that on the first submit, the password confirmation field will not display that error until at least 1 character is in the box.
Thank you for allowing me to design it! |
Great, all is well except the validation error you mention: |
I am not sure, but it seems like a definite possibility. |
@kevinzluo there is a conflict. Please resolve it. |
Fix issue with password confirmation field Add comments and fix scrollup
ea729e9
to
8031c50
Compare
I have resolved the conflicts now. I feel like we should wait for #4209 before proceeding with this PR because it needs to implement these checks on the signin modal. This be somewhat of an issue because the field IDs are different. I will see what I can do once it is merged 👍 |
I also agree. These issues are getting linked up. So, sorry for increased
work.
Also, please see to two issues created
Validation for signup modal
And
Validation for login modal
I think you need to catch up those too.
Modal works with Js, we can't render rails validation errors on that modal.
We will be looking forward Js solution there too. You can help Oorjit and
raise a PR for that too as that is linked with this PR.
…On Wed, Dec 12, 2018, 9:19 AM kevinzluo ***@***.*** wrote:
I have resolved the conflicts now. I feel like we should wait for #4209
<#4209> before proceeding with
this PR because it needs to implement these checks on the signin modal.
This be somewhat of an issue because the field ID's are different. I will
see what I can do once it is merged 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3984 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUACQ3hXBGRXY1YaEZ5tbQY-NFfYPjlwks5u4HzUgaJpZM4YlOuv>
.
|
@kevinzluo can you please make your branch consistent with the current master and try out it again. |
Hi Kevin, it will be appreciated if you will close this PR and open up a new PR for changes. We have moved significantly from the time when you pushed commits for this. |
Please add the new PR number in this PR after closing so that we can review it again in case of any need. |
Hi @kevinzluo I cannot find the new pr. Can you please link it to the one you created? |
I have not opened it yet. I am trying to finish #4438 👍 . |
Fixes #3439 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf 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!
When the passwords do not match, the password boxes are bordered in red, and when they match they are bordered green. There is also a confirmation message at the bottom.
Please let me know if you would like me to do it a different way.