Skip to content

Commit

Permalink
Bumped authpwn for old_password change.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnall committed Feb 20, 2014
1 parent 8f15118 commit 01f7aba
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions app/views/session/password_change.html.erb
Expand Up @@ -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 %>
Expand Down
4 changes: 2 additions & 2 deletions test/functional/session_controller_test.rb
Expand Up @@ -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"]'
Expand All @@ -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"]'
Expand Down

0 comments on commit 01f7aba

Please sign in to comment.