send out email on onboarder assignment: VRFS-4717
This commit is contained in:
parent
c6486b82bf
commit
d9c375df83
|
|
@ -333,6 +333,11 @@ module JamRuby
|
|||
|
||||
updates = {onboarding_status: self.computed_onboarding_status}
|
||||
|
||||
if onboarder_id_changed? && onboarder_id
|
||||
AdminMailer.ugly({to: onboarder.email, cc: 'support@jamkazam.com',
|
||||
subject:'New student assigned to you',
|
||||
body: "Hi #{onboarder.first_name},\n\nA new student has been assigned to you for onboarding. Please send the first introductory email to this student ASAP, and update the onboarding console to start tracking.\n\nNew User Email: #{email}\nNew User Name: #{name}\n\nOnboarding Management: https://www.jamkazam.com/client#/account/onboarder\n\nThanks!\n\nRegards,\nTeam JamKazam"}).deliver_now
|
||||
end
|
||||
if first_onboarding_free_lesson_at_changed? || first_onboarding_paid_lesson_at_changed? || second_onboarding_free_lesson_at?
|
||||
updates[:stuck_take_flesson] = false
|
||||
updates[:stuck_take_2nd_flesson] = false
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class SessionsController < ApplicationController
|
|||
password = params[:session][:password]
|
||||
email.strip! if email
|
||||
password.strip! if password
|
||||
|
||||
|
||||
user = User.authenticate(email, password)
|
||||
|
||||
if user.nil?
|
||||
|
|
|
|||
Loading…
Reference in New Issue