Closed dogancelik closed 9 years ago
All core Node functions and many other popular community modules (mongoose) use function (error) for callback.
function (error)
If error is null, it is assumed that function worked correctly without any problems. This PR will adapt to this Node convention.
error
null
Since we don't have any real data for the verify function, there is no need for success as a second parameter.
success
Users can check if Recaptcha worked by doing if (!err)
if (!err)
Thanks for the PR :+1:
This is a breaking change... version number should have been bumped to 1.1.0 instead of 1.0.3
My bad, i fixed it
All core Node functions and many other popular community modules (mongoose) use
function (error)
for callback.If
error
isnull
, it is assumed that function worked correctly without any problems. This PR will adapt to this Node convention.Since we don't have any real data for the verify function, there is no need for
success
as a second parameter.Users can check if Recaptcha worked by doing
if (!err)