Properly close database connection in DatabaseAuthSyncApp.authenticate()
This commit is contained in:
parent
e0e46904bb
commit
64f2f7352a
@ -319,6 +319,8 @@ class DatabaseAuthSyncApp(SyncApp):
|
||||
|
||||
hashobj.update(username+password+salt)
|
||||
|
||||
conn.close()
|
||||
|
||||
return (db_ret != None and hashobj.hexdigest()+salt == db_hash)
|
||||
|
||||
def main():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user