diff options
author | Tomer Kimia <tkimia@purdue.edu> | 2014-03-04 17:57:15 -0500 |
---|---|---|
committer | Tomer Kimia <tkimia@purdue.edu> | 2014-03-04 17:57:15 -0500 |
commit | 134360da46c1f8e5153c1c9eb5180ac990150d93 (patch) | |
tree | 4709fec28870b98cc66376b527f493d119b0269d /app/views/sessions | |
parent | 8e005f8d325a43e378f21a1042df6a4baf79c12f (diff) |
signin gives error if user cannot sign in
Diffstat (limited to 'app/views/sessions')
-rw-r--r-- | app/views/sessions/new.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index a820b2f..550a54d 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,6 +1,6 @@ <h1>Sign in</h1> -<% if @fail %> - <p class="error">Email and password combination not found</p> +<% if @user.nil? %> + <p class="errors"> The username or password is incorrect. Verify that CAPS LOCK is not on, and then retype the current username and password. </p> <% end %> <div class="row"> <div class="span6 offset3"> |