Spaces:
Runtime error
Runtime error
IsaacKerson
commited on
Commit
•
dc2572f
1
Parent(s):
95a21ea
fixed get_hashed_password
Browse files- 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 =
|
118 |
c = self.get_cursor()
|
119 |
-
c.execute(query, (self.
|
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):
|