mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 12:14:29 +03:00
Fix validation token lifetime email_ prefix
This commit is contained in:
parent
9567c60ffa
commit
ed35302cd1
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ class EmailConfig(Config):
|
||||||
"enable_password_reset_from_is", False,
|
"enable_password_reset_from_is", False,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.validation_token_lifetime = email_config.get(
|
self.email_validation_token_lifetime = email_config.get(
|
||||||
"validation_token_lifetime", 15 * 60,
|
"validation_token_lifetime", 15 * 60,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ class EmailPasswordRequestTokenRestServlet(RestServlet):
|
||||||
)
|
)
|
||||||
|
|
||||||
token_expires = (self.hs.clock.time_msec() +
|
token_expires = (self.hs.clock.time_msec() +
|
||||||
self.config.validation_token_lifetime * 1000)
|
self.config.email_validation_token_lifetime * 1000)
|
||||||
|
|
||||||
yield self.datastore.insert_threepid_validation_token(
|
yield self.datastore.insert_threepid_validation_token(
|
||||||
session_id, token, kwargs.get("next_link"), token_expires,
|
session_id, token, kwargs.get("next_link"), token_expires,
|
||||||
|
|
Loading…
Reference in a new issue