瀏覽代碼

Update registro-run.py

Jose R Ortiz Ubarri 4 年之前
父節點
當前提交
f280ee2a5a
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      registro-run.py

+ 1
- 2
registro-run.py 查看文件

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"))