IsaacKerson commited on
Commit
eadf223
1 Parent(s): 0c707fa

fixed get_hashed_password function

Browse files
Files changed (1) hide show
  1. authenticator.py +2 -2
authenticator.py CHANGED
@@ -59,7 +59,7 @@ class Authenticate:
59
  key: str
60
  The key to be used for hashing the signature of the JWT cookie.
61
  cookie_expiry_days: int
62
- The number of days before the cookie expires on the client's browser.
63
  Returns
64
  -------
65
  str
@@ -116,7 +116,7 @@ class Authenticate:
116
  def get_hashed_password(self):
117
  query = "SELECT hashed_password FROM ? WHERE username = ?"
118
  c = self.get_cursor()
119
- c.execute(query, (self.dbtable, self.username)
120
  return c.fetchone()[0]
121
 
122
  def token_encode(self):
 
59
  key: str
60
  The key to be used for hashing the signature of the JWT cookie.
61
  cookie_expiry_days: int
62
+ The number of days before the cookiFe expires on the client's browser.
63
  Returns
64
  -------
65
  str
 
116
  def get_hashed_password(self):
117
  query = "SELECT hashed_password FROM ? WHERE username = ?"
118
  c = self.get_cursor()
119
+ c.execute(query, (self.dbtable, self.username))
120
  return c.fetchone()[0]
121
 
122
  def token_encode(self):