aboutsummaryrefslogtreecommitdiffstats
path: root/admin/auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/auth.php')
-rw-r--r--admin/auth.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/auth.php b/admin/auth.php
index 8c6d5a6..9674563 100644
--- a/admin/auth.php
+++ b/admin/auth.php
@@ -30,8 +30,9 @@ if(Application::isAuthenticated()) {
if(HTTP::issetPOST(['token' => Application::getSecurityToken()], 'username', 'password')) {
try {
$User = User\Factory::buildByUsername(HTTP::POST('username'));
+ $password = $User->getAttribute()->get('password');
- if($User->comparePassword(HTTP::POST('password'))) {
+ if(password_verify(HTTP::POST('password'), $password)) {
$_SESSION['auth'] = $User->getID();
HTTP::redirect(Application::getAdminURL());
}