added a service call to clear the auth sessions list in case of keycode trouble

This commit is contained in:
Kevin Darby committed 2019-09-17 16:43:24 -04:00
1 parent d1422ddc58
commit 0fa97aeb56
3 files changed
+12

No files matched your search

@@ -33,6 +33,12 @@ AuthServiceServer::AuthServiceServer (bts::api::ServiceContext& context) : AuthS
AuthServiceServer::~AuthServiceServer () {}
void AuthServiceServer::clear_all_sessions(const api::VoidMessage& ,
const std::function<void(const api::ResultMessage&)>& )
{
api::auth::clear_all_sessions();
}
void AuthServiceServer::get_users(const api::user::GetUsersRequest& ,
const std::function<void(const api::user::GetUsersResponse&)>& respond)
{
@@ -20,6 +20,9 @@ public:
void authenticate_login(const api::user::AuthenticateLoginRequest& ,
const std::function<void(const api::user::AuthenticateLoginResponse&)>& ) override;
void clear_all_sessions(const api::VoidMessage& ,
const std::function<void(const api::ResultMessage&)>& ) override;
private:
struct PImpl;
std::unique_ptr<PImpl> me;