* roll back the config file.

* Check the legality of the mailbox when edit profile.
This commit is contained in:
wumo
2018-03-15 11:06:43 +08:00
parent e76ac1b147
commit aad4e06ca6
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
*
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* you share freely, never taking more than you give.
* May you share freely, never taking more than you give.
*/
/* 保证在命令行环境也能运行。Make sure to run in ztcli env. */
+1
View File
@@ -383,6 +383,7 @@ class userModel extends model
->batchCheck($this->config->user->edit->requiredFields, 'notempty')
->check('account', 'unique', "id != '$userID'")
->check('account', 'account')
->checkIF($this->post->email != '', 'email', 'email')
->where('id')->eq((int)$userID)
->exec();