MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / authenticate

Method authenticate

lib/QSimpleUpdater/src/Downloader.cpp:490–500  ·  view source on GitHub ↗

* @brief Handles HTTP authentication requests by showing a credentials dialog. */

Source from the content-addressed store, hash-verified

488 * @brief Handles HTTP authentication requests by showing a credentials dialog.
489 */
490void Downloader::authenticate(QNetworkReply* reply, QAuthenticator* authenticator)
491{
492 Q_UNUSED(reply);
493 AuthenticateDialog dlg(this);
494 dlg.setUserName(authenticator->user());
495 dlg.setPassword(authenticator->password());
496 if (dlg.exec()) {
497 authenticator->setUser(dlg.userName());
498 authenticator->setPassword(dlg.password());
499 }
500}
501
502/**
503 * @brief Rounds the given @a input to two decimal places.

Callers

nothing calls this directly

Calls 5

setUserNameMethod · 0.80
execMethod · 0.80
userNameMethod · 0.80
setPasswordMethod · 0.45
passwordMethod · 0.45

Tested by

no test coverage detected