Merge pull request #443 from jlmitch5/loginModalDisappears

fixed login modal disappearing by improving ux
This commit is contained in:
jlmitch5 2015-09-28 16:42:33 -04:00
commit 924e8b8114
3 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,10 @@
text-align: center;
}
.LoginModal-alert--error {
color: #ff5850;
}
.LoginModal-labelAsterisk:before {
margin-right: -2px;
}

View File

@ -208,7 +208,7 @@ export default ['$log', '$cookieStore', '$compile', '$window', '$rootScope', '$l
' and accessible.';
}
scope.reset();
Alert(hdr, msg, 'alert-danger', setLoginFocus, null, null, false);
scope.attemptFailed = true;
}
});
}

View File

@ -62,6 +62,9 @@
</div>
</div>
</form>
<div class="LoginModal-alert LoginModal-alert--error" ng-show="attemptFailed">
Invalid username and/or password. Please try again.
</div>
<div class="LoginModalNotice" ng-if="customLoginInfoPresent"><div class="LoginModalNotice-title">Notice</div>{{ customLoginInfo | sanitize }}</div>
</div>
<div class="modal-footer LoginModal-footer">