Commit d38cda55 authored by Daniel Gultsch's avatar Daniel Gultsch
Browse files

send status code according to doc

parent deb53eaa
......@@ -95,6 +95,7 @@ public class PasswordController extends BaseController {
LOGGER.info("delete old and create new user " + jid);
MyEjabberdApi.getInstance().unregister(jid.getEscapedLocal(), jid.getDomain());
MyEjabberdApi.getInstance().register(jid.getEscapedLocal(), jid.getDomain(), password);
response.status(201);
} else {
LOGGER.info("changing password for existing user " + jid);
MyEjabberdApi.getInstance().changePassword(jid.getEscapedLocal(), jid.getDomain(), password);
......@@ -102,6 +103,7 @@ public class PasswordController extends BaseController {
} else {
LOGGER.info("create new user " + jid);
MyEjabberdApi.getInstance().register(jid.getEscapedLocal(), jid.getDomain(), password);
response.status(201);
}
return "";
} else {
......
......@@ -16,7 +16,7 @@
package im.quicksy.server.database;
public class SqlQuery {
public final class SqlQuery {
static final String FIND_EXISTING_USERS = "select username from users where server_host=:host and username in(:users)";
static final String FIND_DICTIONARY_ENTRIES = "select jid,phoneNumber from entries where phoneNumber in(:phoneNumbers) and verified=1";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment