* Finish tash #3797

This commit is contained in:
JackWuLieHao
2018-03-29 16:17:09 +08:00
parent 8de3077126
commit 55c57079df
+1 -1
View File
@@ -210,7 +210,7 @@ class userModel extends model
if(strtolower($_POST['account']) == 'guest') return false;
$user = fixer::input('post')
->setDefault('join', $this->post->join)
->setDefault('join', '0000-00-00' )
->setIF($this->post->password1 != false, 'password', md5($this->post->password1))
->setIF($this->post->password1 == false, 'password', '')
->setIF($this->post->email != false, 'email', trim($this->post->email))