mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Add automatic confirmation mail after changing e-mail adress.
This commit is contained in:
parent
640bcc2bf1
commit
dec9efa074
@ -139,6 +139,7 @@ def profile():
|
|||||||
current_user.confirmed = False
|
current_user.confirmed = False
|
||||||
db.session.add(current_user)
|
db.session.add(current_user)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
resend_confirmation()
|
||||||
return redirect(url_for('auth.profile'))
|
return redirect(url_for('auth.profile'))
|
||||||
return render_template('auth/profile.html.j2', form=form,
|
return render_template('auth/profile.html.j2', form=form,
|
||||||
title='Profile')
|
title='Profile')
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<p>Dear {{ user.username }},</p>
|
<p>Dear {{ user.username }},</p>
|
||||||
<p>Welcome to <b>Opaque</b>!</p>
|
|
||||||
<p>To confirm your account please <a href="{{ url_for('auth.confirm', token=token, _external=True) }}">click here</a>.</p>
|
<p>To confirm your account please <a href="{{ url_for('auth.confirm', token=token, _external=True) }}">click here</a>.</p>
|
||||||
<p>Alternatively, you can paste the following link in your browser's address bar:</p>
|
<p>Alternatively, you can paste the following link in your browser's address bar:</p>
|
||||||
<p>{{ url_for('auth.confirm', token=token, _external=True) }}</p>
|
<p>{{ url_for('auth.confirm', token=token, _external=True) }}</p>
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
Dear {{ user.username }},
|
Dear {{ user.username }},
|
||||||
|
|
||||||
Welcome to Opaque!
|
|
||||||
|
|
||||||
To confirm your account please click on the following link:
|
To confirm your account please click on the following link:
|
||||||
{{ url_for('auth.confirm', token=token, _external=True) }}
|
{{ url_for('auth.confirm', token=token, _external=True) }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user