Commit c3c0060539bca6869eb5bad2becba1ab9dfaea0f

Authored by soochanlee ago
1 parent 6724464494
Exists in master

making login fail wait to 10 min

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

project/project/controller/printer.py View file @ c3c0060
... ... @@ -32,7 +32,7 @@
32 32  
33 33 def get_dateSub():
34 34 sub = int(get_date(0)) - session['fail_date']
35   - return sub
  35 + return sub * 60
36 36  
37 37 def is_login():
38 38 if session.has_key('is_login') == False or session['is_login'] == False:
... ... @@ -86,6 +86,7 @@
86 86 session['fail_date'] = 0
87 87  
88 88 if session['fail_cnt'] > 4:
  89 +
89 90 if get_dateSub() > 10:
90 91 session['fail_cnt'] = 0
91 92 session['fail_date'] = 0