Skip to content

Commit

Permalink
upgrade crypto method for user pass
Browse files Browse the repository at this point in the history
  • Loading branch information
bborn committed Jun 8, 2012
1 parent 74444c6 commit a9acbf4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* add back searching to users index
* swap jquery for prototype


* Upgrade to bcrybt crypto method

=2.0.0.beta4
* Replace white_list plugin with Sanitize gem (white_list.rb initizlizer format has changed)
* Upgrade to Rails 3.2
Expand Down
3 changes: 2 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class User < ActiveRecord::Base
FEMALE = 'F'

acts_as_authentic do |c|
c.crypto_provider = CommunityEngineSha1CryptoMethod
c.transition_from_crypto_providers = CommunityEngineSha1CryptoMethod
c.crypto_provider = Authlogic::CryptoProviders::BCrypt

c.validates_length_of_password_field_options = { :within => 6..20, :if => :password_required? }
c.validates_length_of_password_confirmation_field_options = { :within => 6..20, :if => :password_required? }
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/_user.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@

- if current_user && current_user.admin?
%br
= link_to( :assume_id.l, assume_user_path(user) )
= link_to( :assume_id.l, assume_user_path(user), :method => :post )
6 changes: 5 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@
end
end

resources :comments
resources :comments do
member do
get :unsubscribe
end
end
resources :photo_manager

resources :albums do
Expand Down

0 comments on commit a9acbf4

Please sign in to comment.