DEV: allow nonce expiry time to be extended cleanly from a plugin

Previously one would have to redefine a constant
This commit is contained in:
Sam Saffron
2019-03-19 17:33:20 +11:00
parent 21c4754324
commit f8be43644b
2 changed files with 8 additions and 2 deletions

View File

@ -24,7 +24,7 @@ class DiscourseSingleSignOn < SingleSignOn
def register_nonce(return_path)
if nonce
$redis.setex(nonce_key, NONCE_EXPIRY_TIME, return_path)
$redis.setex(nonce_key, SingleSignOn.nonce_expiry_time, return_path)
end
end