完善用户中心功能
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user