Add email service and settings
This commit is contained in:
@@ -3,6 +3,7 @@ class User < ApplicationRecord
|
||||
|
||||
attr_accessor :display_name
|
||||
attr_accessor :avatar_new
|
||||
attr_accessor :current_password
|
||||
|
||||
serialize :preferences, UserPreferences
|
||||
|
||||
@@ -90,11 +91,12 @@ class User < ApplicationRecord
|
||||
# E-Mail update confirmed
|
||||
LdapManager::UpdateEmail.call(self.dn, self.email)
|
||||
else
|
||||
# TODO Make configurable
|
||||
# E-Mail from signup confirmed (i.e. account activation)
|
||||
enable_service %w[ discourse gitea mediawiki xmpp ]
|
||||
|
||||
#TODO enable in development when we have easy setup of ejabberd etc.
|
||||
# TODO Make configurable, only activate globally enabled services
|
||||
enable_service %w[ discourse email gitea mediawiki xmpp ]
|
||||
|
||||
# TODO enable in development when we have easy setup of ejabberd etc.
|
||||
return if Rails.env.development? || !Setting.ejabberd_enabled?
|
||||
|
||||
XmppExchangeContactsJob.perform_later(inviter, self) if inviter.present?
|
||||
|
||||
Reference in New Issue
Block a user