Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…Unique validation only if email is changed
  • Loading branch information
oranges13 committed Jul 3, 2019
1 parent b4ef188 commit 9ec3760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function update($id)
$rules = array(
'name' => 'required|min:3|max:255',
'role' => 'required|numeric|role',
'email' => 'required|email|max:255|unique:users,email',
'email' => 'required|email|max:255|unique:users,email,'.$id ,
'password' => 'confirmed|min:6'
);

Expand Down
2 changes: 1 addition & 1 deletion application/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.1
v1.2.2

0 comments on commit 9ec3760

Please sign in to comment.