Commit 6724464494215302e06b4342a37ff0833a427b41

Authored by soochanlee ago
1 parent bdd6bf777b
Exists in master

fixing bug

Showing 3 changed files with 4 additions and 1 deletions Side-by-side Diff

project/project/controller/printer.py View file @ 6724464
... ... @@ -52,7 +52,7 @@
52 52 @app.route('/index', methods=['GET','POST'])
53 53 def index():
54 54  
55   - if is_login() == False
  55 + if is_login() == False:
56 56 return redirect(url_for('login'))
57 57  
58 58 data = []
project/project/templates/header.html View file @ 6724464
... ... @@ -28,7 +28,9 @@
28 28 <ul class="nav navbar-nav">
29 29 </ul>
30 30 <ul class="nav navbar-nav navbar-right">
  31 + {% if session['is_login'] == True %}
31 32 <li><a href="{{ url_for('log_out') }}">Logout</a></li>
  33 + {% endif %}
32 34 </ul>
33 35 </nav>
34 36 </div>
project/runserver.py View file @ 6724464
... ... @@ -2,6 +2,7 @@
2 2 # -*- coding: utf-8 -*-
3 3  
4 4 from project import app
  5 +from datetime import timedelta
5 6  
6 7 if __name__=='__main__':
7 8 app.permanent_session_lifetime = timedelta(minutes=5)