<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -83,8 +83,7 @@ class TypusController &lt; ApplicationController
         session[:typus_user_id] = @user.id
         redirect_to admin_dashboard_path
       else
-        flash[:error] = _(&quot;Passwords don't match.&quot;)
-        redirect_to admin_reset_password_path(:token =&gt; params[:token])
+        render :action =&gt; 'reset_password'
       end
     end
   end</diff>
      <filename>app/controllers/typus_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,8 @@
 
   &lt;%= hidden_field_tag :token, @user.token %&gt;
 
+  &lt;%= error_messages_for :user, :header_message =&gt; nil, :message =&gt; nil %&gt;
+
   &lt;ul&gt;
   &lt;li&gt;&lt;label for=&quot;password&quot;&gt;&lt;%= _(&quot;Password&quot;) %&gt;&lt;/label&gt;
   &lt;%= password_field :user, :password, :size =&gt; 20, :class =&gt; 'text' %&gt;&lt;/li&gt;</diff>
      <filename>app/views/typus/reset_password.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,6 @@ es:
   &quot;That doesn't seem like a valid email address&quot;: &quot;Eso no parecia una direcci&#243;n v&#225;lida de correo electr&#243;nico.&quot;
   &quot;I remember my password&quot;: &quot;Recuerdo mi contrase&#241;a&quot;
   &quot;Password recovery link sent to your email&quot;: &quot;Enlace de recuperaci&#243;n de contrase&#241;a enviado a tu correo electr&#243;nico.&quot;
-  &quot;Passwords don't match&quot;: &quot;Las Contrase&#241;as no coinciden.&quot;
   &quot;A valid token is required&quot;: &quot;Se requiere un token v&#225;lido.&quot;
   &quot;The email and/or password you entered is invalid&quot;: &quot;El correo y/o la contrase&#241;a proporcionadas no son v&#225;lidas.&quot;
   &quot;There are not defined applications in config/typus/*.yml&quot;: &quot;There are not defined applications in config/typus/*.yml&quot;</diff>
      <filename>config/locales/typus/es.yml</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,6 @@
   &quot;That doesn't seem like a valid email address&quot;: 
   &quot;I remember my password&quot;: 
   &quot;Password recovery link sent to your email&quot;: 
-  &quot;Passwords don't match&quot;: 
   &quot;A valid token is required&quot;: 
   &quot;The email and/or password you entered is invalid&quot;: 
   &quot;There are not defined applications in config/typus/*.yml&quot;: </diff>
      <filename>config/locales/typus/language.yml.template</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,6 @@ pt-BR:
   &quot;That doesn't seem like a valid email address&quot;: &quot;Este n&#227;o parece um email v&#225;lido&quot;
   &quot;I remember my password&quot;: &quot;Lembro minha senha&quot;
   &quot;Password recovery link sent to your email&quot;: &quot;Link para recuperar senha enviado para seu email.&quot;
-  &quot;Passwords don't match&quot;: &quot;As senhas n&#227;o conferem.&quot;
   &quot;A valid token is required&quot;: &quot;&#201; necess&#225;rio um token v&#225;lido.&quot;
   &quot;The email and/or password you entered is invalid&quot;: &quot;O email e/ou a senha que voc&#234; colocou s&#227;o inv&#225;lidos.&quot;
   &quot;There are not defined applications in config/typus/*.yml&quot;: &quot;N&#227;o h&#225; aplicativos definidos em config/typus/*.yml&quot;</diff>
      <filename>config/locales/typus/pt-BR.yml</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,6 @@ ru:
   &quot;That doesn't seem like a valid email address&quot;: &quot;E-Mail &#1085;&#1077;&#1082;&#1086;&#1088;&#1088;&#1077;&#1082;&#1090;&#1077;&#1085;&quot;
   &quot;I remember my password&quot;: &quot;&#1047;&#1072;&#1087;&#1086;&#1084;&#1085;&#1080;&#1090;&#1100; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100;&quot;
   &quot;Password recovery link sent to your email&quot;: &quot;&#1057;&#1089;&#1099;&#1083;&#1082;&#1072; &#1076;&#1083;&#1103; &#1074;&#1086;&#1089;&#1089;&#1090;&#1072;&#1074;&#1085;&#1086;&#1074;&#1083;&#1077;&#1085;&#1080;&#1103; &#1087;&#1072;&#1088;&#1086;&#1083;&#1103; &#1074;&#1099;&#1089;&#1083;&#1072;&#1085;&#1072; &#1087;&#1086; &#1091;&#1082;&#1072;&#1079;&#1072;&#1085;&#1085;&#1086;&#1084;&#1091; E-Mail&quot;
-  &quot;Passwords don't match&quot;: &quot;&#1055;&#1072;&#1088;&#1086;&#1083;&#1080; &#1085;&#1077; &#1089;&#1086;&#1074;&#1087;&#1072;&#1076;&#1072;&#1102;&#1090;&quot;
   &quot;A valid token is required&quot;: &quot;&#1053;&#1077;&#1086;&#1073;&#1093;&#1086;&#1076;&#1080;&#1084; &#1082;&#1086;&#1088;&#1088;&#1077;&#1082;&#1090;&#1085;&#1099;&#1081; &#1082;&#1083;&#1102;&#1095;&quot;
   &quot;The email and/or password you entered is invalid&quot;: &quot;E-Mail &#1080;&#1083;&#1080; &#1087;&#1072;&#1088;&#1086;&#1083;&#1100; &#1074;&#1074;&#1077;&#1076;&#1077;&#1085;&#1099; &#1085;&#1077;&#1074;&#1077;&#1088;&#1085;&#1086;&quot;
   &quot;There are not defined applications in config/typus/*.yml&quot;: &quot;&#1053;&#1080; &#1086;&#1076;&#1085;&#1086;&#1075;&#1086; &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1103; &#1085;&#1077; &#1086;&#1087;&#1088;&#1077;&#1076;&#1077;&#1083;&#1077;&#1085;&#1086; &#1074; config/typus/*.yml&quot;</diff>
      <filename>config/locales/typus/ru.yml</filename>
    </modified>
    <modified>
      <diff>@@ -523,6 +523,15 @@ input#search {
     margin: 0.5em 0em;
   }
 
+  #dialog .errorExplanation ul {
+    margin: 10px 0 10px 0px!important;
+  }
+
+  #dialog .errorExplanation li {
+    font-weight: bold;
+    list-style: none!important;
+  }
+
 /* @end */
 
 /* @group Pagination */</diff>
      <filename>generators/typus/templates/public/stylesheets/admin/screen.css</filename>
    </modified>
    <modified>
      <diff>@@ -127,8 +127,7 @@ class TypusControllerTest &lt; ActionController::TestCase
   def test_should_be_redirected_if_password_does_not_match_confirmation
     typus_user = typus_users(:admin)
     post :reset_password, { :token =&gt; typus_user.token, :user =&gt; { :password =&gt; 'drowssap', :password_confirmation =&gt; 'drowssap2' } }
-    assert_response :redirect
-    assert_redirected_to admin_reset_password_path(:token =&gt; typus_user.token)
+    assert_response :success
   end
 
   def test_should_only_be_allowed_to_reset_password</diff>
      <filename>test/functional/typus_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3da5d97c628504b3a9815fb127f864591606109c</id>
    </parent>
  </parents>
  <author>
    <name>Francesc Esplugas</name>
    <email>francesc@intraducibles.com</email>
  </author>
  <url>http://github.com/fesplugas/typus/commit/75cc929397c4b377a1b6d2d726c95ac499be50f2</url>
  <id>75cc929397c4b377a1b6d2d726c95ac499be50f2</id>
  <committed-date>2009-07-03T07:35:49-07:00</committed-date>
  <authored-date>2009-07-03T07:35:49-07:00</authored-date>
  <message>Updated error message when user resets password. [Closes Ticket #5]</message>
  <tree>c5c8a3ecb342d494a7676714257f8e88b72a3703</tree>
  <committer>
    <name>Francesc Esplugas</name>
    <email>francesc@intraducibles.com</email>
  </committer>
</commit>
