Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bumped authpwn for old_password change.

  • Loading branch information...
commit 01f7aba94957d20c69762d398acc60cd790de067 1 parent 8f15118
@pwnall authored
View
2  Gemfile
@@ -5,7 +5,7 @@ gem 'rails', '>= 4.1.0.rc1'
gem 'mysql2', '>= 0.3.14'
gem 'sqlite3', '>= 1.3.8'
-gem 'authpwn_rails', '>= 0.16.1'
+gem 'authpwn_rails', '>= 0.16.2'
gem 'configvars_rails', '>= 0.6.1'
gem 'gravatar-ultimate', '>= 2.0.0'
gem 'grit', git: 'https://github.com/pwnall/grit.git', branch: 'gitty'
View
4 Gemfile.lock
@@ -48,7 +48,7 @@ GEM
tzinfo (~> 1.1)
arel (5.0.0)
atomic (1.1.14)
- authpwn_rails (0.16.1)
+ authpwn_rails (0.16.2)
fbgraph_rails (>= 0.2.2)
rails (>= 3.2.17)
better_errors (1.1.0)
@@ -231,7 +231,7 @@ PLATFORMS
ruby
DEPENDENCIES
- authpwn_rails (>= 0.16.1)
+ authpwn_rails (>= 0.16.2)
better_errors
binding_of_caller
coffee-rails (>= 4.0.1)
View
4 app/views/session/password_change.html.erb
@@ -21,9 +21,9 @@
<section class="fields">
<% unless @credential.new_record? %>
<div class="field">
- <%= label_tag :old_password, 'Current Password' %><br />
+ <%= f.label :old_password, 'Current Password' %><br />
<span class="value">
- <%= password_field_tag :old_password %>
+ <%= f.password_field :old_password %>
</span>
</div>
<% end %>
View
4 test/functional/session_controller_test.rb
@@ -96,7 +96,7 @@ class SessionControllerTest < ActionController::TestCase
assert_select 'span[class="password_age"]'
assert_select 'form[action=?][method="post"]',
change_password_session_path do
- assert_select 'input[name="old_password"]'
+ assert_select 'input[name=?]', 'credential[old_password]'
assert_select 'input[name=?]', 'credential[password]'
assert_select 'input[name=?]', 'credential[password_confirmation]'
assert_select 'button[type="submit"]'
@@ -111,7 +111,7 @@ class SessionControllerTest < ActionController::TestCase
assert_select 'span[class="password_age"]', count: 0
assert_select 'form[action=?][method="post"]',
change_password_session_path do
- assert_select 'input[name="old_password"]', count: 0
+ assert_select 'input[name=?]', 'credential[old_password]', count: 0
assert_select 'input[name=?]', 'credential[password]'
assert_select 'input[name=?]', 'credential[password_confirmation]'
assert_select 'button[type="submit"]'
Please sign in to comment.
Something went wrong with that request. Please try again.