Skip to content

Commit

Permalink
add captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
linrium committed Dec 31, 2016
1 parent 67a394a commit aef83e9
Show file tree
Hide file tree
Showing 5 changed files with 564 additions and 302 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function register(Request $request)
];

$this->validate($request, [
'txtName' => 'required|max:255|unique',
'txtName' => 'required|max:255',
'txtEmail' => 'required|max:255|unique:users,email',
'txtPassword' => 'required|min:6',
'txtRepassword' => 'required|min:6|same:txtPassword'
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
"kryptonit3/counter": "5.2.*"
"kryptonit3/counter": "5.2.*",
"mews/captcha": "~2.0"
},
"minimum-stability": "dev",
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
Expand Down
Loading

0 comments on commit aef83e9

Please sign in to comment.