lib/doorkeeper/config/validations.rb in doorkeeper-5.5.4 vs lib/doorkeeper/config/validations.rb in doorkeeper-5.6.0.rc1
- old
+ new
@@ -22,12 +22,12 @@
def validate_reuse_access_token_value
strategy = token_secret_strategy
return if !reuse_access_token || strategy.allows_restoring_secrets?
::Rails.logger.warn(
- "You have configured both reuse_access_token " \
- "AND strategy strategy '#{strategy}' that cannot restore tokens. " \
+ "[DOORKEEPER] You have configured both reuse_access_token " \
+ "AND '#{strategy}' strategy which cannot restore tokens. " \
"This combination is unsupported. reuse_access_token will be disabled",
)
@reuse_access_token = false
end
@@ -41,10 +41,10 @@
def validate_token_reuse_limit
return if !reuse_access_token ||
(token_reuse_limit > 0 && token_reuse_limit <= 100)
::Rails.logger.warn(
- "You have configured an invalid value for token_reuse_limit option. " \
+ "[DOORKEEPER] You have configured an invalid value for token_reuse_limit option. " \
"It will be set to default 100",
)
@token_reuse_limit = 100
end
end