Update UserOperationLog in AccountFormDialog.
This commit is contained in:
@@ -156,7 +156,7 @@ void AccountFormDialog::addSelfModeUI(QHBoxLayout* hlayout)
|
|||||||
hlayout->addWidget(btnLogout);
|
hlayout->addWidget(btnLogout);
|
||||||
connect(btnLogout, &QAbstractButton::clicked, [=]() {
|
connect(btnLogout, &QAbstractButton::clicked, [=]() {
|
||||||
accept();
|
accept();
|
||||||
LOG_USER_OPERATION(Logout)
|
LOG_USER_OPERATION("Logout")
|
||||||
EventCenter::Default()->triggerEvent(RequestLogin, nullptr, nullptr);
|
EventCenter::Default()->triggerEvent(RequestLogin, nullptr, nullptr);
|
||||||
});
|
});
|
||||||
// load current user data
|
// load current user data
|
||||||
@@ -201,7 +201,7 @@ bool AccountFormDialog::updateReferenceData()
|
|||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
hideWarn();
|
hideWarn();
|
||||||
LOG_USER_OPERATION(ChangeUserName)
|
LOG_USER_OPERATION("Change User Name")
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -228,7 +228,7 @@ bool AccountFormDialog::updateReferenceData()
|
|||||||
bool ret = user.submitChange();
|
bool ret = user.submitChange();
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
LOG_USER_OPERATION(AdminChangeAcountInformation)
|
LOG_USER_OPERATION("Admin Change Acount Information")
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user