mirror of https://github.com/procxx/kepka.git
parent
978a4ac0ad
commit
5c49701603
|
@ -343,7 +343,7 @@ void PasscodeBox::validateEmail(
|
||||||
const auto errors = std::make_shared<rpl::event_stream<QString>>();
|
const auto errors = std::make_shared<rpl::event_stream<QString>>();
|
||||||
const auto resent = std::make_shared<rpl::event_stream<QString>>();
|
const auto resent = std::make_shared<rpl::event_stream<QString>>();
|
||||||
const auto set = std::make_shared<bool>(false);
|
const auto set = std::make_shared<bool>(false);
|
||||||
const auto submit = [=](QString code) {
|
const auto submit = crl::guard(this, [=](QString code) {
|
||||||
if (_setRequest) {
|
if (_setRequest) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -372,8 +372,8 @@ void PasscodeBox::validateEmail(
|
||||||
errors->fire(Lang::Hard::ServerError());
|
errors->fire(Lang::Hard::ServerError());
|
||||||
}
|
}
|
||||||
}).handleFloodErrors().send();
|
}).handleFloodErrors().send();
|
||||||
};
|
});
|
||||||
const auto resend = [=] {
|
const auto resend = crl::guard(this, [=] {
|
||||||
if (_setRequest) {
|
if (_setRequest) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -385,8 +385,8 @@ void PasscodeBox::validateEmail(
|
||||||
_setRequest = 0;
|
_setRequest = 0;
|
||||||
errors->fire(Lang::Hard::ServerError());
|
errors->fire(Lang::Hard::ServerError());
|
||||||
}).send();
|
}).send();
|
||||||
};
|
});
|
||||||
const auto box = getDelegate()->show(
|
const auto box = _replacedBy = getDelegate()->show(
|
||||||
Passport::VerifyEmailBox(
|
Passport::VerifyEmailBox(
|
||||||
email,
|
email,
|
||||||
codeLength,
|
codeLength,
|
||||||
|
|
Loading…
Reference in New Issue