Permalink
Browse files

doesn't seem like we use these methods anywhere and password encrypti…

…on works without them.
  • Loading branch information...
1 parent e8dda49 commit afb618d622f21c878ba490f2a18bccf77b1ab004 @parndt parndt committed Apr 13, 2010
Showing with 0 additions and 13 deletions.
  1. +0 −13 vendor/plugins/authentication/app/models/user.rb
@@ -55,17 +55,4 @@ def can_delete?(other_user = self)
!other_user.superuser and User.count > 1 and (other_user.nil? or self.id != other_user.id)
end
-protected
-
- # before filter
- def encrypt_password
- return if password.blank?
- self.password_salt = Digest::SHA1.hexdigest("--#{Time.now.to_s}--#{login}--") if new_record?
- self.crypted_password = encrypt(password)
- end
-
- def password_required?
- crypted_password.blank? || !password.blank?
- end
-
end

0 comments on commit afb618d

Please sign in to comment.