Fix validation token lifetime email_ prefix

This commit is contained in:
Andrew Morgan 2019-06-04 19:09:59 +01:00
parent 9567c60ffa
commit ed35302cd1
2 changed files with 2 additions and 2 deletions

View file

@ -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,
) )

View file

@ -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,