X-Git-Url: https://git.hcoop.net/hcoop/portal.git/blobdiff_plain/5da9f4a91ea8e648812be0ca1afaeace2ba0423c..47ea7c948ab73a626681f1f75f42a67921c0ca9f:/domain.mlt
diff --git a/domain.mlt b/domain.mlt
index b47367e..c426e46 100644
--- a/domain.mlt
+++ b/domain.mlt
@@ -4,48 +4,53 @@ val admin = Group.inGroupName "server";
if $"req" <> "" then
val dom = $"req";
- if Util.validDomain dom then
+ if not (Util.validDomain dom) then
+ %>
Invalid domain name
<%
+ elseif String.isPrefix "www." dom and $"want_www" = "" then
+ val base = String.extract (dom, 4, NONE)
+ %>
Are you sure you want to request a domain that begins with "www."?
+
You probably meant to request <% base %> instead, which would grant you the ability to configure <% dom %> as well. Unless you've registered <% dom %> directly with your registrar, you will be unable to configure it without the right to set nameservers for <% base %>.
<% if admin then %>
[Modify][Delete]
- To set up, run: domtool.real mkdom <% #data req %> <% name %>
+ To set up, run: domtool-admin grant <% name %> domain <% #data req %>
<% end %>
<% end
elseif $"cmd" = "list" then
- %>
<% if admin then %>
@@ -61,20 +66,20 @@ elseif $"mod" <> "" then
val id = Web.stoi ($"mod");
val req = Domain.lookup id;
val user = Init.lookupUser (#usr req) %>
-