2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Update API scheme.

This commit is contained in:
John Preston
2018-03-27 17:00:13 +04:00
parent 1392e05ab1
commit 083b520eee
9 changed files with 466 additions and 442 deletions

View File

@@ -331,6 +331,8 @@ void PasscodeBox::save(bool force) {
flags |= MTPDaccount_passwordInputSettings::Flag::f_email;
}
const auto newSecureSecret = bytes::vector();
const auto newSecureSalt = bytes::vector();
const auto newSecureSecretHash = 0ULL;
_setRequest = MTP::send(
MTPaccount_UpdatePasswordSettings(
MTP_bytes(oldPasswordHash),
@@ -340,7 +342,9 @@ void PasscodeBox::save(bool force) {
MTP_bytes(newPasswordHash),
MTP_string(hint),
MTP_string(email),
MTP_bytes(newSecureSecret))),
MTP_bytes(newSecureSalt),
MTP_bytes(newSecureSecret),
MTP_long(newSecureSecretHash))),
rpcDone(&PasscodeBox::setPasswordDone),
rpcFail(&PasscodeBox::setPasswordFail));
}