rest of password thing
[rails.git] / app / models / notifier.rb
index fcc039b1f6dbc058ddcc0468eea04d040724e6db..4b80e1de8212dec993662130acf6501cf5e923aa 100644 (file)
@@ -10,8 +10,15 @@ class Notifier < ActionMailer::Base
   def lost_password( user )
     @recipients = user.email
     @from = 'abuse@openstreetmap.org'
-    @subject = '[OpenStreetMap] Passwors reset request'
+    @subject = '[OpenStreetMap] Password reset request'
     @body['url'] = "http://www.openstreetmap.org/user/reset_password?email=#{user.email}&token=#{user.token}"
   end
 
+  def reset_password(user, pass)
+    @recipients = user.email
+    @from = 'abuse@openstreetmap.org'
+    @subject = '[OpenStreetMap] Password reset'
+    @body['pass'] = pass
+  end
+
 end