Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
no-captcha
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CENTER-TBI
no-captcha
Commits
680a1e78
Commit
680a1e78
authored
Jan 27, 2015
by
anhskohbo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:anhskohbo/no-captcha
Merge
parents
58ecdae5
60e6b539
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
composer.json
composer.json
+1
-1
src/NoCaptchaServiceProvider.php
src/NoCaptchaServiceProvider.php
+2
-4
No files found.
composer.json
View file @
680a1e78
...
...
@@ -18,5 +18,5 @@
"Anhskohbo\\NoCaptcha\\"
:
"src/"
}
},
"minimum-stability"
:
"
stable
"
"minimum-stability"
:
"
dev
"
}
src/NoCaptchaServiceProvider.php
View file @
680a1e78
...
...
@@ -20,6 +20,8 @@ class NoCaptchaServiceProvider extends ServiceProvider {
{
$app
=
$this
->
app
;
$this
->
mergeConfigFrom
(
'captcha'
,
__DIR__
.
'/config/captcha.php'
);
$app
[
'validator'
]
->
extend
(
'captcha'
,
function
(
$attribute
,
$value
)
use
(
$app
)
{
return
$app
[
'captcha'
]
->
verifyResponse
(
$value
,
$app
[
'request'
]
->
getClientIp
());
...
...
@@ -41,10 +43,6 @@ class NoCaptchaServiceProvider extends ServiceProvider {
*/
public
function
register
()
{
$this
->
publishes
([
__DIR__
.
'/config/captcha.php'
=>
$this
->
app
->
configPath
()
.
'/captcha.php'
]);
$this
->
app
->
bind
(
'captcha'
,
function
(
$app
)
{
return
new
NoCaptcha
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment