From 73f60aa7739376cbcc638a505fa153233c705761 Mon Sep 17 00:00:00 2001
From: yangxianzhao <yangxianzhao@uniontech.com>
Date: Thu, 6 Apr 2023 16:19:59 +0800
Subject: [PATCH] Repair user name related prompt information

---
 src/frame/window/modules/accounts/accountsdetailwidget.cpp | 2 +-
 src/frame/window/modules/accounts/createaccountpage.cpp    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frame/window/modules/accounts/accountsdetailwidget.cpp b/src/frame/window/modules/accounts/accountsdetailwidget.cpp
index b8ad19c..6239de9 100644
--- a/src/frame/window/modules/accounts/accountsdetailwidget.cpp
+++ b/src/frame/window/modules/accounts/accountsdetailwidget.cpp
@@ -297,7 +297,7 @@ void AccountsDetailWidget::initUserInfo(QVBoxLayout *layout)
             for (User *user : userList) {
                 if (userFullName == user->fullname()) {
                     m_inputLineEdit->setAlert(true);
-                    m_inputLineEdit->showAlertMessage(tr("The username already exists"), m_inputLineEdit, 2000);
+		    m_inputLineEdit->showAlertMessage(tr("The name already exists"), m_inputLineEdit, 2000);
                     m_inputLineEdit->lineEdit()->selectAll();
                     return;
                 }
diff --git a/src/frame/window/modules/accounts/createaccountpage.cpp b/src/frame/window/modules/accounts/createaccountpage.cpp
index 2a43c85..26b623d 100644
--- a/src/frame/window/modules/accounts/createaccountpage.cpp
+++ b/src/frame/window/modules/accounts/createaccountpage.cpp
@@ -477,7 +477,7 @@ bool CreateAccountPage::checkFullname()
         for (User *user : userList) {
             if (userFullName == user->fullname()) {
                 m_fullnameEdit->setAlert(true);
-                m_fullnameEdit->showAlertMessage(tr("The username already exists"), m_fullnameEdit, 2000);
+		m_fullnameEdit->showAlertMessage(tr("The name already exists"), m_fullnameEdit, 2000);
                 m_fullnameEdit->lineEdit()->selectAll();
                 return false;
             }
-- 
2.18.4

