mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 19:16:53 +00:00
feature/Use Secure Random instead of Random at Create consent endpoint v3.1.0
This commit is contained in:
parent
1a19844816
commit
b535debd49
@ -3515,7 +3515,7 @@ trait APIMethods310 {
|
||||
|
||||
challengeAnswer = Props.mode match {
|
||||
case Props.RunModes.Test => Consent.challengeAnswerAtTestEnvironment
|
||||
case _ => Random.nextInt(99999999).toString()
|
||||
case _ => SecureRandomUtil.numeric()
|
||||
}
|
||||
createdConsent <- Future(Consents.consentProvider.vend.createObpConsent(user, challengeAnswer, None)) map {
|
||||
i => connectorEmptyResponse(i, callContext)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user