Allow users to change their email address. Closes #546.

This commit is contained in:
Tom Hughes 2008-08-13 11:39:33 +00:00
parent f8367c3ee1
commit 64ecd02f0b
7 changed files with 83 additions and 11 deletions

View file

@ -9,6 +9,17 @@ class Notifier < ActionMailer::Base
:confirm_string => token.token)
end
def email_confirm(user, token)
recipients user.new_email
from "webmaster@openstreetmap.org"
subject "[OpenStreetMap] Confirm your email address"
headers "Auto-Submitted" => "auto-generated"
body :address => user.new_email,
:url => url_for(:host => SERVER_URL,
:controller => "user", :action => "confirm_email",
:confirm_string => token.token)
end
def lost_password(user, token)
recipients user.email
from "webmaster@openstreetmap.org"