molten-trunk/molten5_withgrid/lib/authentication_system/contact_methods.rb
def forgot_password(email, port, host = 'localhost')      
        begin
          if contact = Sfssl.find_by_username(email).sfcontact
            SfcontactMailer.deliver_forgot_password(contact,port,host)
            return contact
          end
        rescue NoMethodError
          # no user found
        end
      end
# Emails instructions on retrieving the password to the Sfcontact with the +email+ address. 
# The Sfcontact with the +email+ is returned if a Sfcontact is found. Otherwise nil is returned.
# port - the port of the request...should be provided in the controller as "request.port_string"
# host - Can also provide a host...default to the local host.

Emails instructions on retrieving the password to the Sfcontact with the +email+ address.
The Sfcontact with the +email+ is returned if a Sfcontact is found. Otherwise nil is returned.
port - the port of the request...should be provided in the controller as "request.port_string"
host - Can also provide a host...default to the local host.
Emails instructions on retrieving the password to the Sfcontact with the + email + address . The Sfcontact with the + email + is returned if a Sfcontact is found . Otherwise nil is returned . port - the port of the request ... should be provided in the controller as " request . port_string " host - Can also provide a host ... default to the local host .
def forgot_password(email, port, host = 'localhost')      
        begin
          if contact = Sfssl.find_by_username(email).sfcontact
            SfcontactMailer.deliver_forgot_password(contact,port,host)
            return contact
          end
        rescue NoMethodError
        end
      end
def forgot_password ( email , port , host = 'localhost' ) begin if contact = Sfssl . find_by_username ( email ) . sfcontact SfcontactMailer . deliver_forgot_password ( contact , port , host ) return contact end rescue NoMethodError end end
Emails instructions on retrieving the password to the Sfcontact with the +email+ address.
Emails instructions on retrieving the password to the Sfcontact with the + email + address .
# no user found

email
port
host