[client,sdl] fix smartcard pin dialog result

This commit is contained in:
akallabeth 2024-02-16 11:13:52 +01:00 committed by akallabeth
parent 5d3ffea061
commit a2b220f828

View File

@ -598,8 +598,13 @@ BOOL sdl_auth_dialog_show(const SDL_UserAuthArg* args)
if (rc > 0)
{
user = _strdup(result[0].c_str());
domain = _strdup(result[1].c_str());
pwd = _strdup(result[2].c_str());
if (args->result == AUTH_SMARTCARD_PIN)
pwd = _strdup(result[1].c_str());
else
{
domain = _strdup(result[1].c_str());
pwd = _strdup(result[2].c_str());
}
}
return sdl_push_user_event(SDL_USEREVENT_AUTH_RESULT, user, domain, pwd, rc);
}