#5518 (Verification link in welcome email gives a json response)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Résumé
Go to the [url noi1r.lino-framework.org/#/api/about/About?rs=643486302 noi1r public demo site], select Site --> Create Account, fill in the form fields, wait for the welcome email, click on the link in the email. The browser shows a JSON response:
close_window true
message "User Tom Test is now verified."
success true
Concepts sous-jacents
- #5535 (How to send emails from a developer environment) (by Luc Saffre in Developers assigned to Luc Saffre)
Commentaires
- 2 ans, 6 mois ago by Sharif Mehedi about #5518 (Verification link in welcome email gives a json response) : On react: the permalink response now shows an html page instead of json.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : Let's talk about it, @8lurry
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : I restored the previous behaviour because it's better to see the action's success message in a json structure than to never see it at all.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : I think that rather than redirecting, we must return the html of the goto_url page, but with an additional on_loaded event in the HEAD section that causes the action's result message to pop up as soon as the page is loaded.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : It works only partly: the success-or-error message of the action is not being displayed when it is called via the permalink.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : Perfect. Now it works. Seems that I didn't yet have the latest version.
- 2 ans, 6 mois ago by Sharif Mehedi about #5518 (Verification link in welcome email gives a json response) : it did work on my machine properly tho.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : NB for testing, I used EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' in the settings.py, then (after reproducing the situation) copied the console output to a file tmp.eml, which I then opened in Thunderbird.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : I could not see any change in the result.
- 2 ans, 6 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : When testing this manually from my machine, I got stuck because my machine cannot send emails and I started #5535 (How to send emails from a developer environment).
- 2 ans, 6 mois ago by Sharif Mehedi about #5518 (Verification link in welcome email gives a json response) : Fixed.
- 2 ans, 7 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : Instead of a JSON response it should show the user's settings and a confirmation that this email address is now verified.
- 2 ans, 7 mois ago by Luc Saffre about #5518 (Verification link in welcome email gives a json response) : Created new Ticket #5518 (Verification link in welcome email gives a json response).