Merge lara.matcom.uh.cu:programs/dpto2
Conflicts: main.py
This commit is contained in:
commit
ba036d26b7
1 changed files with 4 additions and 2 deletions
2
main.py
2
main.py
|
@ -61,6 +61,8 @@ def index():
|
|||
|
||||
@app.route("/login",methods=['GET','POST'])
|
||||
def login():
|
||||
if session.get('logged_in',False):
|
||||
return redirect(url_for('admin'))
|
||||
if request.method == 'GET':
|
||||
return render_template("login.html")
|
||||
if request.method == 'POST':
|
||||
|
|
Loading…
Reference in a new issue