mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +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
|
||||
db.session.add(current_user)
|
||||
db.session.commit()
|
||||
resend_confirmation()
|
||||
return redirect(url_for('auth.profile'))
|
||||
return render_template('auth/profile.html.j2', form=form,
|
||||
title='Profile')
|
||||
|
@ -1,5 +1,4 @@
|
||||
<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>Alternatively, you can paste the following link in your browser's address bar:</p>
|
||||
<p>{{ url_for('auth.confirm', token=token, _external=True) }}</p>
|
||||
|
@ -1,7 +1,5 @@
|
||||
Dear {{ user.username }},
|
||||
|
||||
Welcome to Opaque!
|
||||
|
||||
To confirm your account please click on the following link:
|
||||
{{ url_for('auth.confirm', token=token, _external=True) }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user