Skip to content
This repository was archived by the owner on Aug 17, 2021. It is now read-only.

Commit 0e205bc

Browse files
committed
[release]
1 parent 3ac496d commit 0e205bc

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-recaptcha",
3-
"version": "4.0.4",
3+
"version": "4.1.0",
44
"keywords": ["angular", "captcha", "recaptcha", "vividcortex", "human", "form", "validation", "signup", "security", "login"],
55
"main": "release/angular-recaptcha.js",
66
"ignore": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-recaptcha",
3-
"version": "4.0.4",
3+
"version": "4.1.0",
44
"description": "An AngularJS module to ease usage of reCaptcha inside a form",
55
"author": "VividCortex",
66
"license": "MIT",

release/angular-recaptcha.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license angular-recaptcha build:2017-03-14
2+
* @license angular-recaptcha build:2017-04-24
33
* https://github.com/vividcortex/angular-recaptcha
44
* Copyright (c) 2017 VividCortex
55
**/
@@ -99,6 +99,15 @@
9999
config.lang = lang;
100100
};
101101

102+
/**
103+
* Sets the reCaptcha badge position which will be used by default if not specified in a specific directive instance.
104+
*
105+
* @param badge The reCaptcha badge position.
106+
*/
107+
provider.setBadge = function(badge){
108+
config.badge = badge;
109+
};
110+
102111
/**
103112
* Sets the reCaptcha configuration values which will be used by default is not specified in a specific directive instance.
104113
*
@@ -173,6 +182,7 @@
173182
conf.size = conf.size || config.size;
174183
conf.type = conf.type || config.type;
175184
conf.hl = conf.lang || config.lang;
185+
conf.badge = conf.badge || config.badge;
176186

177187
if (!conf.sitekey || conf.sitekey.length !== 40) {
178188
throwNoKeyException();
@@ -196,6 +206,15 @@
196206
$rootScope.$broadcast('reCaptchaReset', widgetId);
197207
},
198208

209+
/**
210+
* Executes the reCaptcha
211+
*/
212+
execute: function (widgetId) {
213+
validateRecaptchaInstance();
214+
215+
recaptcha.execute(widgetId);
216+
},
217+
199218
/**
200219
* Get/Set reCaptcha language
201220
*/
@@ -281,6 +300,7 @@
281300
size: '=?',
282301
type: '=?',
283302
lang: '=?',
303+
badge: '=?',
284304
tabindex: '=?',
285305
required: '=?',
286306
onCreate: '&',
@@ -316,6 +336,7 @@
316336
lang: scope.lang || attrs.lang || null,
317337
tabindex: scope.tabindex || attrs.tabindex || null,
318338
size: scope.size || attrs.size || null,
339+
badge: scope.badge || attrs.badge || null,
319340
'expired-callback': expired
320341

321342
}).then(function (widgetId) {

release/angular-recaptcha.min.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)