|
@@ -6,7 +6,6 @@ from authlib import *
|
6
|
6
|
|
7
|
7
|
app = Flask(__name__)
|
8
|
8
|
|
9
|
|
-secret = open("secret","r").read()
|
10
|
9
|
|
11
|
10
|
@app.route('/', methods=['GET', 'POST'])
|
12
|
11
|
def index():
|
|
@@ -16,7 +15,7 @@ def index():
|
16
|
15
|
if not auth.checkAuth():
|
17
|
16
|
return render_template("login.html")
|
18
|
17
|
|
19
|
|
- print(session["gallitosccom"],session["id"], session["email"])
|
|
18
|
+ print(session["gallitosccom"],session["id"])
|
20
|
19
|
print("Enfermera", auth.checkRole("enfermera"))
|
21
|
20
|
print("Estudiante", auth.checkRole("estudiante"))
|
22
|
21
|
print("Admin", auth.checkRole("admin"))
|