mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-16 14:52:13 +11:00
recaptcha for login as well
This commit is contained in:
parent
316b60d8c5
commit
ec5afae546
3 changed files with 4 additions and 4 deletions
|
|
@ -13,5 +13,5 @@ $(document).ready(function(){
|
|||
});
|
||||
|
||||
function onSubmit(token) {
|
||||
document.getElementById("register").submit();
|
||||
document.getElementById("captchaenabled").submit();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ block content
|
|||
h1.text-black Login
|
||||
hr
|
||||
p
|
||||
form(method='POST', action='/login')
|
||||
form#captchaenabled(method='POST', action='/login')
|
||||
#form-group
|
||||
label Username:
|
||||
input.form-control(name='name', type='text')
|
||||
|
|
@ -20,6 +20,6 @@ block content
|
|||
br
|
||||
|
||||
|
||||
input.btn.btn-primary(type='submit', value='Submit')
|
||||
button.btn.btn-primary.g-recaptcha(data-sitekey="6Lc7fHEjAAAAAJnqvvlEEXL6kHMwnOlU7XbOcSRv" data-callback='onSubmit' data-action='submit') Submit
|
||||
.col-sm
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ extends layout
|
|||
block content
|
||||
.container
|
||||
h1 Register
|
||||
form#register(method='POST', action='/register')
|
||||
form#captchaenabled(method='POST', action='/register')
|
||||
#form-group
|
||||
label Username:
|
||||
input.form-control(name='name', type='name')
|
||||
|
|
|
|||
Loading…
Reference in a new issue