IsaacKerson commited on
Commit
5517543
1 Parent(s): 6985fd9

run check_pw

Browse files
Files changed (2) hide show
  1. authenticator.py +1 -1
  2. pages/join.py +1 -1
authenticator.py CHANGED
@@ -158,7 +158,7 @@ class Authenticate:
158
  boolean
159
  The validation state for the input password by comparing it to the hashed password on disk.
160
  """
161
- return bcrypt.checkpw(self.password.encode(), self.get_hashed_password())
162
 
163
  def login(self, form_name, location='main'):
164
  """Create a new instance of "authenticate".
 
158
  boolean
159
  The validation state for the input password by comparing it to the hashed password on disk.
160
  """
161
+ return bcrypt.checkpw(self.password.encode(), self.get_hashed_password().encode())
162
 
163
  def login(self, form_name, location='main'):
164
  """Create a new instance of "authenticate".
pages/join.py CHANGED
@@ -55,7 +55,7 @@ def app():
55
  else:
56
  uct_iso = datetime.datetime.utcnow().isoformat()
57
  hashed_password = Hasher(password1).generate()
58
- st.write(firstname, lastname, username, email, hashedpassword)
59
  query = "INSERT INTO users(uct_iso, firstname, lastname, username, email, hashed_password) VALUES(?, ?, ?, ?, ?, ?)"
60
  c.execute(query, (uct_iso, first_name, last_name, user_name, email, hashed_password))
61
  conn.commit()
 
55
  else:
56
  uct_iso = datetime.datetime.utcnow().isoformat()
57
  hashed_password = Hasher(password1).generate()
58
+ st.write(firstname, lastname, username, email, hashed_password)
59
  query = "INSERT INTO users(uct_iso, firstname, lastname, username, email, hashed_password) VALUES(?, ?, ?, ?, ?, ?)"
60
  c.execute(query, (uct_iso, first_name, last_name, user_name, email, hashed_password))
61
  conn.commit()