refractor(auth): removed password from everywhere
This commit is contained in:
@@ -15,7 +15,6 @@ struct UserContext
|
||||
std::string role;
|
||||
std::vector<std::string> roles;
|
||||
std::vector<std::string> permissions;
|
||||
bool mustChangePassword{false};
|
||||
};
|
||||
|
||||
std::optional<std::string> bearerToken(const drogon::HttpRequestPtr &request);
|
||||
@@ -25,5 +24,4 @@ bool hasPermission(const UserContext &user, const std::string &permission);
|
||||
bool canManageReports(const UserContext &user);
|
||||
bool canOperateReports(const UserContext &user);
|
||||
bool isAdmin(const UserContext &user);
|
||||
bool mustChangePassword(const UserContext &user);
|
||||
} // namespace visione::auth
|
||||
|
||||
Reference in New Issue
Block a user