SQL-based authentication: Difference between revisions

m
→‎{{header|Python}}: execute success can't be tested (only) with try-except
(→‎{{header|Raven}}: ++ reintegrated python with fixes (creation of salt); random gen of user-pwd for testing kept)
m (→‎{{header|Python}}: execute success can't be tested (only) with try-except)
Line 362:
except:
return False
 
if scheck == 0:
return False
 
salt = cursor.fetchone()[0]
passwd = hashlib.md5(salt+passwd).hexdigest()