Merge pull request 'fix: respect password type when addAccount' (#52) from shunf4/squawk:fix/addAccount_pw_type into messageFeed

Reviewed-on: blue/squawk#52
This commit is contained in:
Blue 2021-10-16 15:34:37 +00:00
commit 8fece95aa2

View File

@ -118,8 +118,9 @@ void Core::Squawk::newAccountRequest(const QMap<QString, QVariant>& map)
QString server = map.value("server").toString();
QString password = map.value("password").toString();
QString resource = map.value("resource").toString();
int passwordType = map.value("passwordType").toInt();
addAccount(login, server, password, name, resource, Shared::AccountPassword::plain);
addAccount(login, server, password, name, resource, Shared::Global::fromInt<Shared::AccountPassword>(passwordType));
}
void Core::Squawk::addAccount(