]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
Rather than referring how to view a bbox history, just redirect to the global history.
[rails.git] / app / models / notifier.rb
index ebf5af64127bd71a3db9f17dd95a384b40363ebf..3cc0f4cab03636139220650f5dbcc516fa628dc6 100644 (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"