OSDN Git Service

Show sign-in error message
authoreagletmt <eagletmt@gmail.com>
Mon, 22 Oct 2012 11:51:00 +0000 (20:51 +0900)
committereagletmt <eagletmt@gmail.com>
Mon, 22 Oct 2012 11:51:00 +0000 (20:51 +0900)
CutenServer/app/views/teachers/sessions/new.html.haml
CutenServer/app/views/users/sessions/new.html.haml
CutenServer/config/locales/ja.yml

index 99cfee7..c0a846a 100644 (file)
@@ -1,4 +1,8 @@
 %h2 Sign in
+
+%p#notice= notice
+%p#alert= alert
+
 = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
   %div
     = f.label :email
index 99cfee7..c0a846a 100644 (file)
@@ -1,4 +1,8 @@
 %h2 Sign in
+
+%p#notice= notice
+%p#alert= alert
+
 = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
   %div
     = f.label :email
index ef5272f..1328383 100644 (file)
@@ -17,6 +17,7 @@ ja:
         signed_up: 教師としてサインアップしました
     failure:
       already_authenticated: ログイン済みです
+      invalid: メールアドレスまたはパスワードが不正です
   home:
     see_profile: profile を見る
     see_achievement: 実績を見る