mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
autofill password field
This commit is contained in:
parent
cd8d794655
commit
99342372d2
@ -114,6 +114,7 @@ void SAMLLoginWindow::onLoadFinished()
|
|||||||
webView->page()->toHtml([this] (const QString &html) { this->handleHtml(html); });
|
webView->page()->toHtml([this] (const QString &html) { this->handleHtml(html); });
|
||||||
QMap<QString, QString> credentials = this->loadCredentials();
|
QMap<QString, QString> credentials = this->loadCredentials();
|
||||||
webView->page()->runJavaScript("document.getElementById('username').value='" + credentials["username"] + "';");
|
webView->page()->runJavaScript("document.getElementById('username').value='" + credentials["username"] + "';");
|
||||||
|
webView->page()->runJavaScript("document.getElementById('password').value='" + credentials["password"] + "';");
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAMLLoginWindow::handleHtml(const QString &html)
|
void SAMLLoginWindow::handleHtml(const QString &html)
|
||||||
|
Loading…
Reference in New Issue
Block a user