Skip to content

Commit

Permalink
#2 Compliance with the new invisible captcha
Browse files Browse the repository at this point in the history
Update on documentation
  • Loading branch information
henriqb committed Apr 20, 2017
1 parent f7554e8 commit 24ab7d1
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ ReCaptcha.Configure(publicKey, secretKey, defaultLanguage);

## How to use

### Client Side:
Inside your form
### Client Side (v2):
Inside your form
```html
<form action="myAction">
<input type="text" name="myinput1" />
Expand All @@ -58,6 +58,25 @@ Optional if you want to override your configured default language:
</form>
```

### Client Side (Invisible):
Inside your form
```html
<script type="text/javascript">function submit() { $('form').submit(); }</script>
<form action="myAction">
<input type="text" name="myinput1" />
@ReCaptcha.GetInvisibleCaptcha("submit", "Save") <!-- Will show a button, with a Label Save and call function "submit();" after user click ok and pass Captcha -->
</form>
```

Optional if you want to override your configured default language:
```html
<script type="text/javascript">function submit() { $('form').submit(); }</script>
<form action="myAction">
<input type="text" name="myinput1" />
@ReCaptcha.GetInvisibleCaptcha("submit", "Save", ReCaptchaLanguage.PortugueseBrazil) <!-- Will show your Invisible ReCaptcha as Portuguese, overriding any previous configuration -->
</form>
```

### Server Side:
Inside your controller function or in a filter
```C#
Expand Down

0 comments on commit 24ab7d1

Please sign in to comment.