warn on login failure

This commit is contained in:
Shish 2011-01-22 16:10:10 +00:00
parent 0d50d68da0
commit 8a8fef4b38

View File

@ -267,6 +267,7 @@ class UserPage extends SimpleExtension {
$page->set_redirect(make_link("user")); $page->set_redirect(make_link("user"));
} }
else { else {
log_warning("user", "Failed to log in as ".html_escape($name)." [$hash]");
$this->theme->display_error($page, "Error", "No user with those details was found"); $this->theme->display_error($page, "Error", "No user with those details was found");
} }
} }