summaryrefslogtreecommitdiffstats
path: root/app/model/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/model/login.php')
-rw-r--r--app/model/login.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/model/login.php b/app/model/login.php
index 6358e12..3393281 100644
--- a/app/model/login.php
+++ b/app/model/login.php
@@ -32,6 +32,10 @@ if (isAction("login"))
$user->validatePasswd($form->passwd)))
{
logError(ERROR, "Username or password is incorrect");
+
+ if ($user)
+ $log = mesg::initNewAdminLog("Failed login for username '%s'", $user);
+
goto prep;
}
@@ -72,6 +76,7 @@ if (isAction("signup"))
}
user::setCurrent($user);
+ $log = mesg::initNewAdminLog("%s account registered", $user);
location("/");
}