Skip to content

Commit

Permalink
修正编辑账号时提示账号已存在BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjiangbin committed Aug 22, 2017
1 parent 91b98b5 commit 925f605
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/Http/Controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@ public function editUser(Request $request)
$remark = $request->get('remark');
$is_admin = $request->get('is_admin');

// 校验username是否已存在
$exists = User::where('username', $username)->first();
if ($exists) {
return Response::json(['status' => 'fail', 'data' => '', 'message' => '用户名已存在,请重新输入']);
}

$data = [
'username' => $username,
'port' => $port,
Expand Down

0 comments on commit 925f605

Please sign in to comment.