* roll back the config file.
* Check the legality of the mailbox when edit profile.
This commit is contained in:
+1
-1
@@ -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. */
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user