Fix broken password validation

This commit is contained in:
Matias Griese
2014-09-03 21:17:38 +03:00
parent bc3753a693
commit 7a22ecd4d3

View File

@@ -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']);