-2008-07-23 Christophe Romain <christophe.romain@process-one.net>
+2008-07-24 Badlop <badlop@process-one.net>
+
+ * src/mod_register.erl: When a registration is blocked due to IP
+ limitation, return description in error stanza (EJAB-692)
+
+2008-07-24 Christophe Romain <christophe.romain@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: Allow owner to subscribe/get its own
node (EJAB-705)
IQ#iq{type = result, sub_el = [SubEl]};
_ ->
case try_register(User, Server, Password,
- Source) of
+ Source, Lang) of
ok ->
IQ#iq{type = result, sub_el = [SubEl]};
{error, Error} ->
end.
-try_register(User, Server, Password, Source) ->
+try_register(User, Server, Password, Source, Lang) ->
case jlib:is_nodename(User) of
false ->
{error, ?ERR_BAD_REQUEST};
end
end;
false ->
- {error, ?ERR_RESOURCE_CONSTRAINT}
+ ErrText = "Users are not allowed to register "
+ "accounts so fast",
+ {error, ?ERRT_RESOURCE_CONSTRAINT(Lang, ErrText)}
end
end
end.