mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
fake redirection by iframe...
This commit is contained in:
parent
5c859e6fef
commit
0a7f208a72
6 changed files with 114 additions and 35 deletions
|
@ -191,7 +191,7 @@ jabberMsg(XMLNode node) {
|
|||
// super dirty.. this should all be in textdb
|
||||
packet = sprintf("<iq type='result' id='%s'>"
|
||||
"<query xmlns='jabber:iq:register'/>"
|
||||
"<error code='501>Registration by XMPP not permitted.</error></iq>",
|
||||
"<error code='501'>Registration by XMPP not permitted.</error></iq>",
|
||||
id);
|
||||
#else
|
||||
packet = sprintf("<iq type='result' id='%s'>"
|
||||
|
@ -235,7 +235,10 @@ jabberMsg(XMLNode node) {
|
|||
// QUIT
|
||||
} else {
|
||||
#if defined(_flag_disable_unauthenticated_users_XMPP) || defined(_flag_disable_registration_XMPP)
|
||||
// TODO: generate some error as above
|
||||
emit(sprintf("<iq type='result' id='%s'>"
|
||||
"<query xmlns='jabber:iq:register'/>"
|
||||
"<error code='501'>Registration by XMPP not permitted.</error></iq>",
|
||||
id));
|
||||
#else
|
||||
user -> vSet("password", t[Cdata]);
|
||||
if (t = helper["/email"]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue