Browse Source

Update authlib.py

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

+ 1
- 1
authlib.py View File

33
         self.session["gallitosccom"] = True
33
         self.session["gallitosccom"] = True
34
         self.id = id
34
         self.id = id
35
         self.email = email
35
         self.email = email
36
-        self.session["id"] = self.fernet.encrypt(json.dumps({"id": id, "email": email}))
36
+        self.session["id"] = self.fernet.encrypt(json.dumps({"id": id, "email": email}).encode())
37
         if self.expire:
37
         if self.expire:
38
             self.session["tiempo"] = time.time()
38
             self.session["tiempo"] = time.time()
39
 
39