From d4a74e6bba910bd36bd318419b92f80230da7aff Mon Sep 17 00:00:00 2001 From: Alexander-Porter Date: Wed, 10 Jul 2024 14:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BF=AE=E6=94=B9=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e079fa5..3467223 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -310,9 +310,9 @@ void MainWindow::onModifyInfo(User user) { //CurrentUser=new User(user); _userinfopage->currentUser=CurrentUser; - qDebug() << user.getEmail() << " " << user.gethashedPassword(); + db->updateUserInfo(user.getEmail(),_userinfopage->newPasswordEdit_->text()); - qDebug() << user.getEmail() << " " << db->getUserPassword(user.getEmail()); + setUserInfoCardTitle(_userinfopage->newIdEdit_->text()); setUserInfoCardSubTitle(user.getEmail());