diff options
author | Malf Furious <m@lfurio.us> | 2016-04-30 22:34:01 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-05-01 01:34:23 -0400 |
commit | e9189928e1108d0c1330eb47cc5de20d67f5de51 (patch) | |
tree | f8d8f241f1260115f94cffb84e483d7c194a669b /app/model | |
parent | 6d6e62add5976b3afec23d1745302d676ccd88ac (diff) | |
download | scrott-e9189928e1108d0c1330eb47cc5de20d67f5de51.tar.gz scrott-e9189928e1108d0c1330eb47cc5de20d67f5de51.zip |
Update setting modal to allow user to remove their own head image
Diffstat (limited to 'app/model')
-rw-r--r-- | app/model/common.mod.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php index 080c78e..32bdb44 100644 --- a/app/model/common.mod.php +++ b/app/model/common.mod.php @@ -79,6 +79,16 @@ class CommonModel extends MasterModel return; } + if (isset($input['rmImage'])) + { + if ($user->rmHeadImage()) + $this->logNotice("Image removed"); + else + $this->logError("Error removing user image"); + + return; + } + if ($form->setPasswd) { if ($user->validatePassword($form->curPasswd)) |