use of org.pmiops.workbench.model.BlockscoreIdVerificationStatus in project workbench by all-of-us.
the class ProfileController method reviewIdVerification.
@Override
@AuthorityRequired({ Authority.REVIEW_ID_VERIFICATION })
public ResponseEntity<IdVerificationListResponse> reviewIdVerification(Long userId, IdVerificationReviewRequest review) {
BlockscoreIdVerificationStatus status = review.getNewStatus();
Boolean oldVerification = userDao.findUserByUserId(userId).getBlockscoreVerificationIsValid();
String newValue;
if (status == BlockscoreIdVerificationStatus.VERIFIED) {
userService.setIdVerificationApproved(userId, true);
newValue = "true";
} else {
userService.setIdVerificationApproved(userId, false);
newValue = "false";
}
userService.logAdminUserAction(userId, "manual ID verification", oldVerification, newValue);
return getIdVerificationsForReview();
}
Aggregations