mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
autofill password field
This commit is contained in:
1 parent
cd8d794655
commit
99342372d2
1 file changed
+1
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user