Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

LogInSystem.hpp 681 B

123456789101112131415161718192021222324252627282930313233
  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. };