MCPcopy Create free account
hub / github.com/KDE/kdevelop / twoFactorResponse

Method twoFactorResponse

plugins/ghprovider/ghdialog.cpp:142–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void Dialog::twoFactorResponse(const QString &transferHeader)
143{
144 auto code = QInputDialog::getText(this, i18nc("@title:window", "Authentication Code"), i18nc("@label:textbox", "OTP Code:"));
145 Resource* rs = m_account->resource();
146 disconnect(rs, &Resource::twoFactorAuthRequested,
147 this, &Dialog::twoFactorResponse);
148 rs->twoFactorAuthenticate(transferHeader, code);
149}
150
151void Dialog::syncUser()
152{

Callers

nothing calls this directly

Calls 2

resourceMethod · 0.80
twoFactorAuthenticateMethod · 0.80

Tested by

no test coverage detected