Add self verification after login
This commit is contained in:
parent
7a9c69cbd0
commit
5688b2647e
9 changed files with 285 additions and 72 deletions
|
|
@ -120,7 +120,16 @@ VerificationManager::removeVerificationFlow(DeviceVerificationFlow *flow)
|
|||
void
|
||||
VerificationManager::verifyDevice(QString userid, QString deviceid)
|
||||
{
|
||||
auto flow = DeviceVerificationFlow::InitiateDeviceVerification(this, userid, deviceid);
|
||||
auto flow = DeviceVerificationFlow::InitiateDeviceVerification(this, userid, {deviceid});
|
||||
this->dvList[flow->transactionId()] = flow;
|
||||
emit newDeviceVerificationRequest(flow.data());
|
||||
}
|
||||
|
||||
void
|
||||
VerificationManager::verifyOneOfDevices(QString userid, std::vector<QString> deviceids)
|
||||
{
|
||||
auto flow =
|
||||
DeviceVerificationFlow::InitiateDeviceVerification(this, userid, std::move(deviceids));
|
||||
this->dvList[flow->transactionId()] = flow;
|
||||
emit newDeviceVerificationRequest(flow.data());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue