Change password

This commit is contained in:
2022-10-30 20:09:51 +01:00
parent b9a32e41bf
commit 356bfc6a86
4 changed files with 29 additions and 6 deletions

View File

@@ -121,8 +121,12 @@ func (s MobilityAccountsServerImpl) GetAccountsBatch(ctx context.Context, req *G
}
return &GetAccountsBatchResponse{Accounts: accounts}, nil
}
func (MobilityAccountsServerImpl) ChangePassword(ctc context.Context, req *ChangePasswordRequest) (*ChangePasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method not implemented")
func (s MobilityAccountsServerImpl) ChangePassword(ctx context.Context, req *ChangePasswordRequest) (*ChangePasswordResponse, error) {
err := s.handler.ChangePassword(req.Id, req.Password)
if err != nil {
return nil, err
}
return &ChangePasswordResponse{}, nil
}
func (MobilityAccountsServerImpl) mustEmbedUnimplementedMobilityAccountsServer() {}