mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-12-27 02:40:48 +01:00
Fix broken password validation
This commit is contained in:
@@ -146,6 +146,7 @@ class Admin
|
||||
$file = File\Yaml::instance(ACCOUNTS_DIR . $form['username'] . YAML_EXT);
|
||||
if ($file->exists()) {
|
||||
$user = new User($file->content());
|
||||
print_r($user);
|
||||
|
||||
// Authenticate user.
|
||||
$result = $user->authenticate($form['password']);
|
||||
|
||||
Reference in New Issue
Block a user