MGR and client: Add more missing code from the cookieless install merge.

This commit is contained in:
Rom Walton 2016-02-10 17:37:52 -05:00
parent 301b191b70
commit eab1dd6f84
2 changed files with 6 additions and 2 deletions

View File

@ -779,7 +779,7 @@ void handle_lookup_account(GUI_RPC_CONN& grc) {
MIOFILE in;
ai.parse(grc.xp);
if (!ai.url.size() || !ai.email_addr.size() || !ai.passwd_hash.size()) {
if ((!ai.url.size() || !ai.email_addr.size() || !ai.passwd_hash.size()) && !ai.server_assigned_hash) {
grc.mfout.printf("<error>missing URL, email address, or password</error>\n");
return;
}

View File

@ -2279,11 +2279,15 @@ int RPC_CLIENT::lookup_account(ACCOUNT_IN& ai) {
" <email_addr>%s</email_addr>\n"
" <passwd_hash>%s</passwd_hash>\n"
" <ldap_auth>%d</ldap_auth>\n"
" <server_assigned_hash>%d</server_assigned_hash>\n"
" <server_hash>%s</server_hash>\n"
"</lookup_account>\n",
ai.url.c_str(),
ai.email_addr.c_str(),
passwd_hash.c_str(),
ai.ldap_auth?1:0
ai.ldap_auth?1:0,
ai.server_assigned_hash?1:0,
ai.server_hash.c_str()
);
buf[sizeof(buf)-1] = 0;