Browse code

ACMS-403 Fix: dont set default domain for admin0

Thomas Fricker authored on 10/07/2018 14:15:40
Showing 1 changed files
... ...
@@ -82,10 +82,8 @@ public final class Nginx implements Handler<HttpServerRequest>, NeedVertxExecuto
82 82
 			}
83 83
 
84 84
 			latd = decode(latd);
85
-
86
-			if (defaultDomain != null && !latd.contains("@")) {
87
-				latd += "@" + defaultDomain;
88
-			}
85
+			latd = (!"admin0".equals(latd) && defaultDomain != null && !latd.contains("@")) ? latd + "@" + defaultDomain
86
+					: latd;
89 87
 
90 88
 			String password = decode(req.headers().get("Auth-Pass"));
91 89