Use a better mailbox validation page

This commit is contained in:
Son NK 2020-03-14 14:45:37 +01:00
parent 67abc08f45
commit 28c6c68a80
2 changed files with 21 additions and 7 deletions

View file

@ -0,0 +1,19 @@
{% extends "base.html" %}
{% block title %}
Mailbox Validation
{% endblock %}
{% block content %}
<div class="mx-auto p-7 card" style="max-width: 50rem">
<div class="text-center mb-7">Mailbox <b>{{ mailbox.email }}</b> verified, you can now start creating alias with it
</div>
<div class="mx-auto">
<a href="{{ url_for('dashboard.index') }}" class="btn btn-primary">Go To Home Page</a>
</div>
</div>
{% endblock %}

View file

@ -151,10 +151,5 @@ def mailbox_verify():
db.session.commit()
LOG.d("Mailbox %s is verified", mailbox)
flash(
f"The {mailbox.email} is now verified, you can start creating alias with it",
"success",
)
return redirect(
url_for("dashboard.mailbox_detail_route", mailbox_id=mailbox.id)
)
return render_template("dashboard/mailbox_validation.html", mailbox=mailbox)