def request_passwd
clear_session
return true unless request.post?
if person = Person.find_by_login(params[:login_or_email]) ||
Person.find_by_email(params[:login_or_email])
Notification.deliver_request_passwd(person, request.remote_ip)
flash[:notice] << _('An email has been sent to you, with instructions ' +
'on how to enter the system and change your ' +
'password.')
redirect_to :action => '/'
else
flash[:error] << _('Nobody was found with the specified login or ' +
'E-mail address. Please make sure it was correctly ' +
'specified. Keep in mind this system is ' +
'case-sensitive.')
end
end