summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0399271)
This was used to test logins, but since this code is public, this isn't
the best of ideas.
row = cursor.fetchone()
conn.close()
row = cursor.fetchone()
conn.close()
- if (password == 'ocblaa' or self.hash.check_password(password, row[0])):
+ if self.hash.check_password(password, row[0]):
return (row[1], row[2])
else:
return (False, False)
return (row[1], row[2])
else:
return (False, False)