Skip to content

Commit

Permalink
Adding error message to login page. Closes #548
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsielicki committed Jan 14, 2016
1 parent 1091b2c commit f010361
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web-server/slycat-login/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ body {
margin-bottom: 20px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
#signin-alert {
display: none;
}
1 change: 1 addition & 0 deletions web-server/slycat-login/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ require(["jquery", "URI"], function($, URI)
error: function(request, status, reason_phrase)
{
console.log("error request:" + request.responseJSON +" status: "+ status + " reason: " + reason_phrase);
$("#signin-alert").show(200);
},
data: sendInfo
});
Expand Down
1 change: 1 addition & 0 deletions web-server/slycat-login/slycat-login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<body>
<div class="container bootstrap-styles">
<form class="form-signin">
<div class="alert alert-danger" role="alert" id="signin-alert">Oops, that username and password did not work. Please try again.</div>

<label for="username" class="sr-only">Username</label>
<input id="username" class="form-control" placeholder="Username" required="" autofocus="" type="text">
Expand Down

0 comments on commit f010361

Please sign in to comment.