users_manager.h
1 /*
2 * <one line to give the program's name and a brief idea of what it does.>
3 * Copyright (C) 2021 <copyright holder> <email>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 
20 #ifndef USERS_MANAGER
21 #define USERS_MANAGER
22 
23 
24 #include <string>
25 
26 #include "Poco/Tuple.h"
27 
28 #include "functions/action.h"
29 #include "security/user.h"
30 #include "tools/output_logger.h"
31 
32 
33 namespace NAF
34 {
35  namespace Security
36  {
37  class UsersManager;
38  }
39 }
40 
41 
43 {
44  public:
45  UsersManager();
46 
47  User& get_current_user()
48  {
49  auto& var = current_user_;
50  return var;
51  }
52 
53  bool AuthenticateUser_();
54 
55  private:
56  User current_user_;
57 };
58 
59 
60 #endif // USERS_MANAGER
Definition: user.h:37
Definition: users_manager.h:43