Renabled mail delivering in invites and login contrller.

This commit is contained in:
benni 2012-12-30 16:11:35 +01:00
parent 9db5a2fa14
commit 349cadd5e9
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class InvitesController < ApplicationController
def create def create
@invite = Invite.new(params[:invite]) @invite = Invite.new(params[:invite])
if @invite.save if @invite.save
Mailer.invite(@invite) Mailer.invite(@invite).deliver
respond_to do |format| respond_to do |format|
format.html do format.html do

View file

@ -14,7 +14,7 @@ class LoginController < ApplicationController
user.reset_password_token = user.new_random_password(16) user.reset_password_token = user.new_random_password(16)
user.reset_password_expires = Time.now.advance(:days => 2) user.reset_password_expires = Time.now.advance(:days => 2)
if user.save if user.save
Mailer.reset_password(user) Mailer.reset_password(user).deliver
logger.debug("Sent password reset email to #{user.email}.") logger.debug("Sent password reset email to #{user.email}.")
end end
end end