aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sessions.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r--engine/lib/sessions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index ae7bd8ac5..3116f500d 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -72,10 +72,10 @@
{
if (is_array($credentials) && ($credentials['username']) && ($credentials['password']))
{
- $dbpassword = md5($credentials['password']);
+ //$dbpassword = md5($credentials['password']);
if ($user = get_user_by_username($credentials['username'])) {
- if ($user->password == $dbpassword) {
+ if ($user->password == generate_user_password($user, $credentials['password'])) {
return true;
}
}