mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:11:12 +08:00
FEATURE: move more urgent emails notifications to critical queue
Move signup, admin login and password change email notifications to critical queue
This commit is contained in:
@ -204,7 +204,7 @@ class SessionController < ApplicationController
|
||||
user_presence = user.present? && user.id != Discourse::SYSTEM_USER_ID && !user.staged
|
||||
if user_presence
|
||||
email_token = user.email_tokens.create(email: user.email)
|
||||
Jobs.enqueue(:forgot_password, user_id: user.id, email_token: email_token.token)
|
||||
Jobs.enqueue(:critical_user_email, type: :forgot_password, user_id: user.id, email_token: email_token.token)
|
||||
end
|
||||
|
||||
json = { result: "ok" }
|
||||
|
Reference in New Issue
Block a user