From 73d078b05e9dfd7b31cecc7e0dcd0bdd84170863 Mon Sep 17 00:00:00 2001 From: hnu202326010401 <2263510185@qq.com> Date: Tue, 30 Sep 2025 15:34:58 +0800 Subject: [PATCH] Delete 'account.cpp' --- account.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 account.cpp diff --git a/account.cpp b/account.cpp deleted file mode 100644 index b1ee00b..0000000 --- a/account.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include"account.h" - -Authenticator::Authenticator(){ - users = { - User("张三1","123","小学"), - User("张三2","123","小学"), - User("张三3","123","小学"), - User("李四1","123","初中"), - User("李四2","123","初中"), - User("李四3","123","初中"), - User("王五1","123","高中"), - User("王五2","123","高中"), - User("王五3","123","高中"), - }; -} - -User* Authenticator::authenticate(const std::string& username,const std::string& password){ - for(User& user : users){ - if(user.UserName == username&&user.Password == password){ - return &user; - } - } - return nullptr; -} \ No newline at end of file