ck 4 gadi atpakaļ
vecāks
revīzija
4aeccca361
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      handlers/HandlerBase.py

+ 6 - 0
handlers/HandlerBase.py

@@ -107,7 +107,13 @@ class BaseHandler(RequestHandler,DateUtils):
             return True
         else:
             Authorization = self.request.headers.get('Authorization')
+            print(Authorization)
             b = str(float(str(base64.b64decode(Authorization[::-1].encode('utf-8')),'utf-8'))*int(self.now.day))[:10]
+
+            # if (len(origStr) % 3 == 1):
+            #     origStr += "=="
+            # elif (len(origStr) % 3 == 2):
+            #     origStr += "="
             diff =int(time.mktime(time.localtime()))-int(b)
             print(diff)
             if diff < 60: