Commit 5583c7e4 authored by Matija Obreza's avatar Matija Obreza
Browse files

Token should not be consumed if PID check fails

parent a335dc82
......@@ -234,7 +234,7 @@ public class RequestServiceImpl implements RequestService {
// Rollback for any exception
@Override
@Transactional
@Transactional(rollbackFor= { NoPidException.class, EasySMTAException.class })
public MaterialRequest validateClientRequest(String tokenUuid, String key) throws NoSuchVerificationTokenException, NoPidException, EasySMTAException, TokenExpiredException {
final VerificationToken consumedToken = tokenVerificationService.consumeToken(REQUEST_TOKENTYPE, tokenUuid, key);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment