From d7eb2d904cc89628eff60c2e35878b24135ced19 Mon Sep 17 00:00:00 2001 From: delvh Date: Sat, 8 Feb 2020 09:17:11 +0100 Subject: [PATCH] Added another default reason --- src/main/java/envoy/event/HandshakeRejectionEvent.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/envoy/event/HandshakeRejectionEvent.java b/src/main/java/envoy/event/HandshakeRejectionEvent.java index 5537a18..66bbbc8 100644 --- a/src/main/java/envoy/event/HandshakeRejectionEvent.java +++ b/src/main/java/envoy/event/HandshakeRejectionEvent.java @@ -32,6 +32,13 @@ public class HandshakeRejectionEvent implements Event { */ public static final String USER_DOES_NOT_EXIST = "user does not exist"; + /** + * Select this value if a given {@link LoginCredentials} with + * {@link LoginCredentials#isRegistration()}==true points at an already existing + * user + */ + public static final String USER_EXISTS_ALREADY = "user can not be created as he already exists"; + /** * Select this value if an unknown error occurred */