diff --git a/app/auth/views.py b/app/auth/views.py index 82c528537119963b195b9770d2244741fff84c22..b09c1f5dc8d52a6ab923019153cd9072213d9e3b 100644 --- a/app/auth/views.py +++ b/app/auth/views.py @@ -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') diff --git a/app/templates/auth/email/confirm.html.j2 b/app/templates/auth/email/confirm.html.j2 index 599c4787ceb4c7f5b1e29a5f2a6bfc9992e4d215..82ce9240745ba97dc3408746cd17a1da642021b5 100644 --- a/app/templates/auth/email/confirm.html.j2 +++ b/app/templates/auth/email/confirm.html.j2 @@ -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> diff --git a/app/templates/auth/email/confirm.txt.j2 b/app/templates/auth/email/confirm.txt.j2 index 5ba0670b9a2c596d5120f3faf3b03ddb1216557f..6421b7d01f57d69bd57c151e4ffc1b2f8c705644 100644 --- a/app/templates/auth/email/confirm.txt.j2 +++ b/app/templates/auth/email/confirm.txt.j2 @@ -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) }}