1
0
mirror of https://github.com/v2board/v2board.git synced 2025-05-04 07:14:44 +08:00
This commit is contained in:
root 2019-10-29 13:53:51 +08:00
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']) {