Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !! What do i want in place of those comments?
- def forgot_password
- if request.post?
- @message_text = "If your email is registered with us, an email will be sent containing your login information."
- else
- @message_text = "Your email address was not found in the system. Please register for an account."
- end
- def send_password
- if params[:email].any?
- @users = User.find(:first, :conditions => "email = '" + params[:email] + "'")
- if @users
- redirect_back(2)
- else
- redirect_back(1)
- end
- end
- end
Add Comment
Please, Sign In to add comment