25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
681 B

  1. #include <iostream>
  2. #include <fstream>
  3. #include <json/json.h>
  4. #include <string>
  5. #include <vector>
  6. #include "Person.hpp"
  7. using namespace std;
  8. class LogInSystem
  9. {
  10. public:
  11. LogInSystem();
  12. LogInSystem(string filename);
  13. //Declaration of functions
  14. Person getUser(string);
  15. Person getUser(int);
  16. int getWrongPass();
  17. int login();
  18. void loggedIn(Person);
  19. Person registration();
  20. Person editCredentials(Person);
  21. void update(Person);
  22. string chgUsername();
  23. string chgPassword(Person);
  24. string chgEmail();
  25. string chgPhoneNo();
  26. void toTxtFile(string filename);
  27. private:
  28. vector<Person> users;
  29. int wrongPass;
  30. int globalUserId;
  31. };