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