Renabled mail delivering in invites and login contrller.
This commit is contained in:
parent
9db5a2fa14
commit
349cadd5e9
2 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class InvitesController < ApplicationController
|
|||
def create
|
||||
@invite = Invite.new(params[:invite])
|
||||
if @invite.save
|
||||
Mailer.invite(@invite)
|
||||
Mailer.invite(@invite).deliver
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
|
|
@ -14,7 +14,7 @@ class LoginController < ApplicationController
|
|||
user.reset_password_token = user.new_random_password(16)
|
||||
user.reset_password_expires = Time.now.advance(:days => 2)
|
||||
if user.save
|
||||
Mailer.reset_password(user)
|
||||
Mailer.reset_password(user).deliver
|
||||
logger.debug("Sent password reset email to #{user.email}.")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue