Browse Source

Update registro-run.py

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

+ 3
- 1
registro-run.py View File

6
 
6
 
7
 app = Flask(__name__)
7
 app = Flask(__name__)
8
 
8
 
9
+secret = os.open("secret").read()
10
+print(secret)
11
+
9
 @app.route('/', methods=['GET', 'POST'])
12
 @app.route('/', methods=['GET', 'POST'])
10
 def index():
13
 def index():
11
 #     return "Hello, World!"
14
 #     return "Hello, World!"
12
     print(session)
15
     print(session)
13
-    print(app.secret_key)
14
     auth = Auth(session)
16
     auth = Auth(session)
15
     if not auth.checkAuth():
17
     if not auth.checkAuth():
16
         return render_template("login.html")
18
         return render_template("login.html")