Do not allow tenant create/update with an empty sub-domain
MODIFY
src/assets/server/rest/v1/schemas/auth/auth-check-eula.json
src/assets/server/rest/v1/schemas/auth/auth-check-eula.json
"$ref": "common.json#/definitions/email"
},
"Tenant": {
- "$ref": "common.json#/definitions/subdomain"
+ "$ref": "common.json#/definitions/authSubdomain"
}
},
"required": [

MODIFY
src/assets/server/rest/v1/schemas/auth/auth-resend-verification-email.json
src/assets/server/rest/v1/schemas/auth/auth-resend-verification-email.json
"$ref": "common.json#/definitions/email"
},
"tenant": {
- "$ref": "common.json#/definitions/subdomain"
+ "$ref": "common.json#/definitions/authSubdomain"
},
"captcha": {
"$ref": "common.json#/definitions/captcha"

MODIFY
src/assets/server/rest/v1/schemas/auth/auth-reset-password.json
src/assets/server/rest/v1/schemas/auth/auth-reset-password.json
"$ref": "common.json#/definitions/email"
},
"tenant": {
- "$ref": "common.json#/definitions/subdomain"
+ "$ref": "common.json#/definitions/authSubdomain"
},
"captcha": {
"$ref": "common.json#/definitions/captcha"

MODIFY
src/assets/server/rest/v1/schemas/auth/auth-signin.json
src/assets/server/rest/v1/schemas/auth/auth-signin.json
"$ref": "common.json#/definitions/acceptEula"
},
"tenant": {
- "$ref": "common.json#/definitions/subdomain"
+ "$ref": "common.json#/definitions/authSubdomain"
}
},
"required": [

MODIFY
src/assets/server/rest/v1/schemas/auth/auth-signon.json
src/assets/server/rest/v1/schemas/auth/auth-signon.json
"$ref": "common.json#/definitions/acceptEula"
},
"tenant": {
- "$ref": "common.json#/definitions/subdomain"
+ "$ref": "common.json#/definitions/authSubdomain"
},
"captcha": {
"$ref": "common.json#/definitions/captcha"

MODIFY
src/assets/server/rest/v1/schemas/auth/auth-verify-email.json
src/assets/server/rest/v1/schemas/auth/auth-verify-email.json
"$ref": "common.json#/definitions/email"
},
"Tenant": {
- "$ref": "common.json#/definitions/subdomain"
+ "$ref": "common.json#/definitions/authSubdomain"
},
"VerificationToken": {
"type": "string",

MODIFY
src/assets/server/rest/v1/schemas/common/common.json
src/assets/server/rest/v1/schemas/common/common.json
"format": "email",
"sanitize": "mongo"
},
+ "authSubdomain": {
+ "type": "string",
+ "pattern": "^[a-z0-9]*$",
+ "maxLength": 20,
+ "sanitize": "mongo"
+ },
"subdomain": {
"type": "string",
"pattern": "^[a-z0-9]*$",
+ "minLength": 1,
"maxLength": 20,
"sanitize": "mongo"
},

Do not allow tenant create/update with an empty sub-domain