mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user