Add UserOperationLog.

This commit is contained in:
sunwen
2023-09-05 16:32:38 +08:00
parent d8ffe7b10e
commit 17cc9e5297
18 changed files with 103 additions and 50 deletions

View File

@@ -124,12 +124,13 @@ void LoginDialog::doLogin()
{
mErrorMessage->setVisible(false);
accept();
LOG_USER_OPERATION(Login);
LOG_USER_OPERATION("Login Sucessful");
JsonObject::Instance()->setDefaultUser(strUserCode);
}
else
{
LOG_USER_OPERATION(QString("Login Failed, User Name: %1").arg(strUserCode));
mErrorMessage->setVisible(true);
}
}