diff options
author | Malf Furious <m@lfurio.us> | 2018-10-26 22:00:18 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-10-26 22:00:18 -0400 |
commit | b9783160efe6ab1d6084113fa5c0fa982404be53 (patch) | |
tree | 6d7bb828c87e77eca946ce0c958c290e0dac1a2d /app/model/login.php | |
parent | d73d8ccf9b009a522080f7fec08bf9f23962e1c9 (diff) | |
parent | 3e0aa02f2051300fbe255c578ed2717a71b65954 (diff) | |
download | scrott-b9783160efe6ab1d6084113fa5c0fa982404be53.tar.gz scrott-b9783160efe6ab1d6084113fa5c0fa982404be53.zip |
Merge branch 'feature/logging' into dev
Signed-off-by: Malf Furious <m@lfurio.us>
Diffstat (limited to 'app/model/login.php')
-rw-r--r-- | app/model/login.php | 5 |
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("/"); } |