完善用户中心功能

This commit is contained in:
2020-04-15 14:56:30 +08:00
parent 906dccda61
commit 10b40f0071
14 changed files with 370 additions and 16 deletions

View File

@@ -242,6 +242,12 @@ class Member extends Model {
self::where(['uid' => $user['uid']])->update($data);
}
public static function sendFindPaswd($user){
$token = \xin\helper\Secure::encrypt($user['username'] . "|" . $user['email'], \think\facade\Env::get('jwt.secret'));
$url = url('/user/index/resetpasswd', ['token'=>$token], true, true);
return true;
}
public function depart() {
return $this->hasOne('Department', 'id', 'department');
}