-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecurity.py
More file actions
33 lines (22 loc) · 875 Bytes
/
security.py
File metadata and controls
33 lines (22 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from flask import Blueprint, render_template, request, session
security = Blueprint("security", __name__, static_folder="static", template_folder="templates")
@security.route('/change-password')
def change_pass_view():
return render_template('change_pass.html')
@security.route('/reset-password/initiate')
def reset_pass():
return render_template('reset_pass_ini.html')
@security.route('/reset-password/confirm')
def reset_pass_con():
if 'temp_mail' in session:
email = session['temp_mail']
return render_template('reset_pass_confirm.html', email=email)
# @security.route('/reset-password/check'):
# def reset_pass_check():
# data = request.json
# email = data.get('email')
# code = data.get('code')
#
@security.route('/reset-password/update')
def reset_pass_update():
return render_template('reset_pass_confirm2.html')