Require CAPTCHA for password recovery
https://jira.coreos.com/browse/QS-79
This commit is contained in:
parent
927d469db0
commit
a204dc20fb
3 changed files with 47 additions and 1 deletions
|
@ -5,4 +5,24 @@
|
|||
|
||||
.recovery-form-element input {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.recovery-form-element .captcha {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.recovery-form-element .captcha div {
|
||||
display: inline-block;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
.recovery-form-element .captcha {
|
||||
height: 0px;
|
||||
transition: height ease-in-out 250ms;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.recovery-form-element .captcha.expanded {
|
||||
height: 94px;
|
||||
}
|
|
@ -18,6 +18,14 @@
|
|||
|
||||
<form class="form-signin" ng-submit="sendRecovery()" ng-show="!sent">
|
||||
<input type="text" class="form-control" placeholder="Email" ng-model="recovery.email">
|
||||
|
||||
<div quay-require="['RECAPTCHA']">
|
||||
<div class="captcha"
|
||||
ng-class="{'expanded': recovery.email}">
|
||||
<div vc-recaptcha ng-model="recovery.recaptcha_response" key="Config.RECAPTCHA_SITE_KEY"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary btn-block" type="submit">Send Recovery Email</button>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Reference in a new issue