Verify password functionality conditional logic is a bit off
See original GitHub issueCurrently I am using the verify email flow
However, I am running into an issue where for some reason this main block of logic is not being triggered: https://github.com/sahat/hackathon-starter/blob/master/controllers/user.js#L283
Therefore the app just hangs infinitely and then Heroku times out the request. I’m still debugging it but I think it would be great if there was an else block on that if
statement where it will return an error to the frontend. Because like I said I’m still debugging what’s causing this but it’s happened ‘in the wild’ for me so I think that it would be useful for users/devs if this case was handled, thanks.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Password verify always returns fail in Laravel (Hash::check)
I made a posts table (in this case sales table) with password column. When I try to create the post, it's working perfectly...
Read more >Conditional Logic for Online Forms - Jotform
Access the Conditional Logic Wizard. Go to the Settings tab in the Form Builder, then click Conditions on the left. Select the condition...
Read more >Conditionals with if/else & Booleans | AP CSP (article)
If we want our programs to execute a different set of instructions when the condition is false, then we can use an else...
Read more >Implementing Form Validation Without Conditional Logic
On line (1) , you see the declaration of the validation function. It's argument is that string that we want to validate, and...
Read more >Python program to check the validity of a Password
In this program, we will be taking a password as a combination of alphanumeric characters ... Python program to check validation of password....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed with https://github.com/sahat/hackathon-starter/commit/6c4d5e9622546db18c22293699152a5662dc1cf2
I traced it back to the fact that if you are logged in with a different account when you try your verification link it will just hang without sending an error. I can submit a PR for this if you’d like, thanks!