remove logout.html
This commit is contained in:
parent
af9e93ea30
commit
26a094469b
|
@ -1,28 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="page-single">
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col mx-auto card p-7" style="max-width: 50rem">
|
|
||||||
<div class="text-center mb-6">
|
|
||||||
<a href="https://simplelogin.io">
|
|
||||||
<img src="/static/logo.svg" style="background-color: transparent; height: 24px">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="text-center text-muted">
|
|
||||||
You are logged out.
|
|
||||||
|
|
||||||
<a href="{{ url_for('auth.login') }}">Login</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% block title %}
|
|
||||||
Logout
|
|
||||||
{% endblock %}
|
|
|
@ -1,4 +1,4 @@
|
||||||
from flask import render_template
|
from flask import redirect, url_for, flash
|
||||||
from flask_login import logout_user
|
from flask_login import logout_user
|
||||||
|
|
||||||
from app.auth.base import auth_bp
|
from app.auth.base import auth_bp
|
||||||
|
@ -7,4 +7,5 @@ from app.auth.base import auth_bp
|
||||||
@auth_bp.route("/logout")
|
@auth_bp.route("/logout")
|
||||||
def logout():
|
def logout():
|
||||||
logout_user()
|
logout_user()
|
||||||
return render_template("auth/logout.html")
|
flash("You are logged out", "success")
|
||||||
|
return redirect(url_for("auth.login"))
|
||||||
|
|
Loading…
Reference in a new issue