2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
module Users
|
|
|
|
module NewUserNotifier
|
|
|
|
def notify_new_user(user, reset_token)
|
|
|
|
log_info("User \"#{user.name}\" (#{user.email}) was created")
|
|
|
|
notification_service.new_user(user, reset_token) if reset_token
|
|
|
|
system_hook_service.execute_hooks_for(user, :create)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|