mirror of
https://github.com/v2board/v2board.git
synced 2025-02-26 23:30:26 +08:00
update
This commit is contained in:
parent
1836b78b99
commit
c5b56bda00
@ -38,7 +38,7 @@ class UserController extends Controller
|
||||
if (!$user) {
|
||||
abort(500, '用户不存在');
|
||||
}
|
||||
if (User::where('email', $update['email'])->first() && $user->email !== $updateData['email']) {
|
||||
if (User::where('email', $updateData['email'])->first() && $user->email !== $updateData['email']) {
|
||||
abort(500, '邮箱已被使用');
|
||||
}
|
||||
if ($updateData['password']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user