enforce underscore in prefix
diff --git a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
index 9cea87b..2930014 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
@@ -341,9 +341,9 @@
site = attrs.site || this.site;
if ((site!=undefined) && (attrs.name!=undefined)) {
site = xos.sites.get(site);
- if (attrs.name.indexOf(site.attributes.login_base) != 0) {
+ if (attrs.name.indexOf(site.attributes.login_base+"_") != 0) {
errors = errors || {};
- errors["name"] = "must start with " + site.attributes.login_base;
+ errors["name"] = "must start with " + site.attributes.login_base + "_";
}
}
return errors;