Properly close database connection in DatabaseAuthSyncApp.authenticate()

This commit is contained in:
jdoe0 2013-08-14 18:43:43 +07:00
parent e0e46904bb
commit 64f2f7352a

View File

@ -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():