Redirect to CAPTCHA when too many attempts fail

This commit is contained in:
Ray Schamp 2015-10-19 16:36:46 -04:00
parent 4532db95df
commit 70f06b6be8
2 changed files with 4 additions and 0 deletions

View file

@ -6,6 +6,7 @@
"/csrf_token/",
"/fragment/",
"/get_image/",
"/login_retry",
"/session/",
"/static/"
]

View file

@ -77,6 +77,9 @@ var Navigation = React.createClass({
if (body) {
body = body[0];
if (!body.success) {
if (body.redirect) {
window.location = body.redirect;
}
this.setState({'loginError': body.msg});
} else {
this.closeLogin();