diff --git a/client/src/dialogs/WebLoginDialog.cpp b/client/src/dialogs/WebLoginDialog.cpp index afe7ef3..5b43b54 100644 --- a/client/src/dialogs/WebLoginDialog.cpp +++ b/client/src/dialogs/WebLoginDialog.cpp @@ -44,6 +44,7 @@ WebLoginDialog::WebLoginDialog(ConfigManagerClient *config, QWidget *parent) connect(myObject, &WebLoginSharedObject::loginFailure, this, &WebLoginDialog::onLoginFailed); connect(myObject, &WebLoginSharedObject::mfaCheckInProgress, this, &WebLoginDialog::onMfaCheckInProgress); connect(myObject, &WebLoginSharedObject::mfaSetupInProgress, this, &WebLoginDialog::onMfaSetupInProgress); + connect(myObject, &WebLoginSharedObject::passwordChangeInProgress, this, &WebLoginDialog::onPasswordChangeInProgress); connect(myObject, &WebLoginSharedObject::redirectToLogin, this, &WebLoginDialog::onRedirectToLoginRequest); m_webPage->setBackgroundColor(QColor(0x2c3338)); @@ -154,6 +155,11 @@ void WebLoginDialog::onMfaCheckInProgress() ui->btnCancel->setVisible(true); } +void WebLoginDialog::onPasswordChangeInProgress() +{ + showLargeView(true); +} + void WebLoginDialog::onLoginFailed(const QString &message) { showLargeView(false); diff --git a/client/src/dialogs/WebLoginDialog.h b/client/src/dialogs/WebLoginDialog.h index b605f26..f851b98 100644 --- a/client/src/dialogs/WebLoginDialog.h +++ b/client/src/dialogs/WebLoginDialog.h @@ -38,6 +38,10 @@ class WebLoginSharedObject : public QObject { emit mfaCheckInProgress(); } + Q_INVOKABLE void sendPasswordChangeInProgress(){ + emit passwordChangeInProgress(); + } + Q_INVOKABLE void sendRedirectToLogin(){ emit redirectToLogin(); } @@ -51,6 +55,8 @@ class WebLoginSharedObject : public QObject { void mfaSetupInProgress(); void mfaCheckInProgress(); + void passwordChangeInProgress(); + }; namespace Ui { @@ -97,6 +103,8 @@ private slots: void onMfaSetupInProgress(); void onMfaCheckInProgress(); + void onPasswordChangeInProgress(); + void onLoginFailed(const QString &message); void onRedirectToLoginRequest();