Browse Source

Update authlib.py

Jose R Ortiz Ubarri 4 years ago
parent
commit
d0b5587e63
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      authlib.py

+ 1
- 1
authlib.py View File

35
         self.email = email
35
         self.email = email
36
         # self.session["id"] = id
36
         # self.session["id"] = id
37
         # self.session["email"] = email
37
         # self.session["email"] = email
38
-        self.session["id"] = self.fernet(json.dumps({"id": id, "email": email}))
38
+        self.session["id"] = self.fernet.encrypt(json.dumps({"id": id, "email": email}))_
39
         if self.expire:
39
         if self.expire:
40
             self.session["tiempo"] = time.time()
40
             self.session["tiempo"] = time.time()
41
 
41