Not Reviewed
Show More
Add another comment
| @@ -42,10 +42,8 define('USING_TIDY', false); | |||
|
|
42 | 42 | |
|
|
43 | 43 | /* These function are all for core authentication. */ |
|
|
44 | 44 | |
|
|
45 | // Call mysql to hash a password | |
|
|
46 | 45 | function mt_hash_password($password) { |
|
|
47 | global $mtdb; | |
|
|
48 | return $mtdb->getOne('SELECT SHA1("' . mysqli_real_escape_string($mtdb->link, $password) . '")') ; | |
|
|
46 | return sha1($password); | |
|
|
49 | 47 | } |
|
|
50 | 48 | |
|
|
51 | 49 | // Remove invalid characters from username. Permit only alpha, underscore, period, at, hypen |
Comments 0
You need to be logged in to leave comments.
Login now
