This commit is contained in:
root 2019-10-25 15:35:47 +08:00
parent 6fe38f35c4
commit e4ec8c4b92

View File

@ -34,7 +34,7 @@ class UserController extends Controller
} else { } else {
$user = new User(); $user = new User();
} }
if (User::where('email', $request->input('email')->first())) { if (User::where('email', $request->input('email'))->first()) {
abort(500, '邮箱已被使用'); abort(500, '邮箱已被使用');
} }
if ($request->input('id') && !$request->input('password')) { if ($request->input('id') && !$request->input('password')) {