SQL-based authentication: Difference between revisions

Content added Content deleted
(→‎{{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: Line 362:
except:
except:
return False
return False

if scheck == 0:
return False

salt = cursor.fetchone()[0]
salt = cursor.fetchone()[0]
passwd = hashlib.md5(salt+passwd).hexdigest()
passwd = hashlib.md5(salt+passwd).hexdigest()