secretService.changePassword(user, credential, password, recoveryKey);
}
protected TokenInfo findTokenInfo(String tokenId) {
try {
TokenInfo tokenInfo = tokenService.findValidToken(tokenId);
return tokenInfo;
} catch (Exception e) {
log.warn("Unexpected error while reading token", e);
return null;
}