added a service call to clear the auth sessions list in case of keycode trouble
This commit is contained in:
1 parent
d1422ddc58
commit
0fa97aeb56
3 files changed
+12
No files matched your search
@@ -57,4 +57,7 @@ service AuthService {
|
||||
|
||||
rpc get_users(GetUsersRequest) returns (GetUsersResponse)
|
||||
{option (bts.api.method_description)="Returns list of valid users";}
|
||||
|
||||
rpc clear_all_sessions(bts.api.VoidMessage) returns (bts.api.ResultMessage)
|
||||
{option (bts.api.method_description)="Clears all reserved auth sessions";}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user