Browse Source

Update registro-run.py

Jose R Ortiz Ubarri 4 years ago
parent
commit
f280ee2a5a
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      registro-run.py

+ 1
- 2
registro-run.py View File

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