From c3bb559bfbd7fef295834e2f59b6ca99b31b97e8 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 19 Mar 2012 19:47:57 +0600 Subject: [PATCH] [refs #308] hide password & password confirmation --- app/views/devise/registrations/new.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/devise/registrations/new.html.haml b/app/views/devise/registrations/new.html.haml index 19bebe4d4..5fb9371d6 100644 --- a/app/views/devise/registrations/new.html.haml +++ b/app/views/devise/registrations/new.html.haml @@ -21,11 +21,11 @@ .both .left=t('activerecord.attributes.user.password') .right - = f.text_field :password, :id => 'password', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" + = f.password_field :password, :id => 'password', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" .both .left=t('activerecord.attributes.user.password_confirm') .right - = f.text_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" + = f.password_field :password_confirmation, :id => 'password2', :class => "registartion-input #{password_error ? 'registartion-input-error' : ''}" .both .in =f.submit t("layout.devise.shared_links.sign_up"), :class => 'button', :id => 'btnLogin'