feature/Use Secure Random instead of Random at Create consent endpoint v3.1.0

This commit is contained in:
Marko Milić 2022-11-24 13:07:08 +01:00
parent 1a19844816
commit b535debd49

View File

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