this is not an AuthLogic question, this code should do the trick:
class User < ActiveRecord::Base
...
def update_without_password_confirmation(params={})
params.delete(:password) if params[:password_confirmation].blank?
params.delete(:password_confirmation) if params[:password].blank?
update_attributes(params)
end
end
then call this method from the controller when you need to update the attributes for the user. If the User has not provided a confirmation password, it will be ignored. you can use several other methods to get the same effect, for example, using the before_validation callback (: on =>: update).
UPDATE: , act_as_authentic :
clas User < AR::Base
acts_as_authentic do |u|
u.require_password_confirmation=false
u.validate_password_field=false
end
end
: P :
https://github.com/binarylogic/authlogic/blob/master/lib/authlogic/acts_as_authentic/password.rb