Change password
This commit is contained in:
@@ -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() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user