mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-17 14:20:21 -04:00
Use direct references for configuration variables (part 7). (#10959)
This commit is contained in:
parent
a071144a5c
commit
a0f48ee89d
23 changed files with 83 additions and 68 deletions
|
@ -116,8 +116,8 @@ class RegistrationHandler(BaseHandler):
|
|||
self._register_device_client = self.register_device_inner
|
||||
self.pusher_pool = hs.get_pusherpool()
|
||||
|
||||
self.session_lifetime = hs.config.session_lifetime
|
||||
self.access_token_lifetime = hs.config.access_token_lifetime
|
||||
self.session_lifetime = hs.config.registration.session_lifetime
|
||||
self.access_token_lifetime = hs.config.registration.access_token_lifetime
|
||||
|
||||
init_counters_for_auth_provider("")
|
||||
|
||||
|
@ -343,7 +343,10 @@ class RegistrationHandler(BaseHandler):
|
|||
# If the user does not need to consent at registration, auto-join any
|
||||
# configured rooms.
|
||||
if not self.hs.config.consent.user_consent_at_registration:
|
||||
if not self.hs.config.auto_join_rooms_for_guests and make_guest:
|
||||
if (
|
||||
not self.hs.config.registration.auto_join_rooms_for_guests
|
||||
and make_guest
|
||||
):
|
||||
logger.info(
|
||||
"Skipping auto-join for %s because auto-join for guests is disabled",
|
||||
user_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue