Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
alert when login failed
Browse files Browse the repository at this point in the history
  • Loading branch information
graboskyc committed Sep 1, 2019
1 parent 818f3ac commit 1ce1f25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Stitch-Hosting/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ <h1 class="h3 mb-3 font-weight-normal">Sign In</h1>

function loginFail(err) {
console.error(`login failed with error: ${err}`);
$('#response').html("Login Failed");
$('#response').removeAttr('class');
$('#response').addClass("alert alert-danger");
var msg = $('<div class="alert alert-danger" role="alert" id="">Login failed!</div>').hide().fadeIn(750);
$('#form-signin').prepend(msg);
}
</script>
</body>
Expand Down

0 comments on commit 1ce1f25

Please sign in to comment.