Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating user #12

Closed
safen opened this issue Jan 13, 2023 · 2 comments
Closed

Error when creating user #12

safen opened this issue Jan 13, 2023 · 2 comments

Comments

@safen
Copy link

safen commented Jan 13, 2023

Hello when I want to create new user it gave me this error :
I'm using it in Laravel Framework 9.47.0

$softEther=new SoftEtherApi\SoftEther("192.168.5.5",'999');
  $connectResult = $softEther->Connect();
  $authResult = $softEther->Authenticate('password');
  $user = $softEther->HubApi->CreateUser("vpn", "testUser", "userPw",'users','usertest','note');
  return  $user->Valid() ? "Success" : $user->Error;

image

@safen
Copy link
Author

safen commented Jan 13, 2023

I fixed it ist bug just change the last parameter type from int to DateTime at
SoftEtherApi\Api\SoftEtherHub::CreateUser()

image

image

and all information must be filled there is no optional parameter.

alphp added a commit that referenced this issue Jan 15, 2023
@alphp
Copy link
Member

alphp commented Jan 15, 2023

Thanks

@alphp alphp closed this as completed Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants