Do not allow resendVerificationLink for anonymousUsers
@@ -27,6 +27,7 @@ public enum RestStatusResponse {
TOKEN_CREATION_FAILED(3401, "Could not create VerifyToken", HttpStatus.SERVICE_UNAVAILABLE),
TOKEN_EXPIRED(3403, "Verification Token is expired", HttpStatus.BAD_REQUEST),
TOKEN_RESEND_FAILED_ALREADY_VERIFIED(3404, "User is already verified, E-Mail will not be sent", HttpStatus.CONFLICT),
+ TOKEN_RESEND_FAILED_USER_ANONYMOUS(3405, "User is not verifiable, E-Mail will not be sent", HttpStatus.FORBIDDEN),
SIGNUP_FAILED(4400, "Registration failed", HttpStatus.BAD_REQUEST),
