mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-25 06:52:24 +00:00
perf: 管理员新增修改成员邮箱功能
This commit is contained in:
parent
ef6b4e8149
commit
513bc28686
@ -553,6 +553,7 @@ class UsersController extends AbstractController
|
|||||||
* - setdisable 设为离职(需要参数 disable_time、transfer_userid)
|
* - setdisable 设为离职(需要参数 disable_time、transfer_userid)
|
||||||
* - cleardisable 取消离职
|
* - cleardisable 取消离职
|
||||||
* - delete 删除会员
|
* - delete 删除会员
|
||||||
|
* @apiParam {String} [email] 邮箱地址
|
||||||
* @apiParam {String} [password] 新的密码
|
* @apiParam {String} [password] 新的密码
|
||||||
* @apiParam {String} [nickname] 昵称
|
* @apiParam {String} [nickname] 昵称
|
||||||
* @apiParam {String} [profession] 职位
|
* @apiParam {String} [profession] 职位
|
||||||
@ -624,6 +625,14 @@ class UsersController extends AbstractController
|
|||||||
if (isset($upArray['identity'])) {
|
if (isset($upArray['identity'])) {
|
||||||
$upArray['identity'] = "," . implode(",", $upArray['identity']) . ",";
|
$upArray['identity'] = "," . implode(",", $upArray['identity']) . ",";
|
||||||
}
|
}
|
||||||
|
// 邮箱
|
||||||
|
if (Arr::exists($data, 'email')) {
|
||||||
|
$email = trim($data['email']);
|
||||||
|
if (User::whereEmail($email)->where('userid', '!=', $userInfo->userid)->exists()) {
|
||||||
|
return Base::retError('邮箱地址已存在');
|
||||||
|
}
|
||||||
|
$upArray['email'] = $email;
|
||||||
|
}
|
||||||
// 密码
|
// 密码
|
||||||
if (Arr::exists($data, 'password')) {
|
if (Arr::exists($data, 'password')) {
|
||||||
$password = trim($data['password']);
|
$password = trim($data['password']);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user