# File lib/merb-auth-more/mixins/salted_user/relaxdb_salted_user.rb, line 6
        def self.extended(base)
          base.class_eval do

            property :crypted_password

            if Merb::Authentication::Mixins::SaltedUser > base
              property :salt
            end

            before_save :password_checks

            def password_checks
              if password_required?
                return false unless !password.blank? && password == password_confirmation
              end
              encrypt_password
              true
            end

          end
        end