IsaacKerson commited on
Commit
dc2572f
1 Parent(s): 95a21ea

fixed get_hashed_password

Browse files
Files changed (1) hide show
  1. authenticator.py +2 -2
authenticator.py CHANGED
@@ -114,9 +114,9 @@ class Authenticate:
114
  return False
115
 
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):
 
114
  return False
115
 
116
  def get_hashed_password(self):
117
+ query = f'''SELECT hashed_password FROM {self.dbtable} WHERE username = ?'''
118
  c = self.get_cursor()
119
+ c.execute(query, (self.username, ))
120
  return c.fetchone()[0]
121
 
122
  def token_encode(self):