error msg

This commit is contained in:
Jon Lambson 2017-07-12 10:08:56 -06:00
parent d446057524
commit 1d02c1d424
3 changed files with 6 additions and 3 deletions

View File

@ -445,3 +445,6 @@ span.dap-small-text.js-scope-desc.noselect {
color : #808080; color : #808080;
color : rgb(128, 128, 128); color : rgb(128, 128, 128);
} }
.error-msg {
color: #FDA748;
}

View File

@ -61,6 +61,7 @@
<p class="code-lasts-text">Code lasts for 15 minutes.</p> <p class="code-lasts-text">Code lasts for 15 minutes.</p>
<input type="hidden" class="js-authn-otp-uuid"> <input type="hidden" class="js-authn-otp-uuid">
<input class="dap-input js-authn-otp-code form-control" placeholder="XXXX-XXXX-XXXX" maxlength="14"></input> <input class="dap-input js-authn-otp-code form-control" placeholder="XXXX-XXXX-XXXX" maxlength="14"></input>
<p class="error-msg"></p>
</div> </div>
<div class="dap-centered-div dap-space-on-top form-group"> <div class="dap-centered-div dap-space-on-top form-group">
<label class="js-remember-label dap-normal-text"> <label class="js-remember-label dap-normal-text">

View File

@ -311,9 +311,8 @@ $(function () {
return getAccount(session).then(function () { return getAccount(session).then(function () {
return getGrants(session); return getGrants(session);
}); });
}, function (err) { }, function (error) {
console.log("oooooooppppps"); $('.error-msg').text('Incorrect code');
console.log(err);
}); });
}; };