SchokkerIT / GameDash

Official repository for the GameDash project
21 stars 0 forks source link

Unable to Create Sub-User #7

Open aleforge opened 4 years ago

aleforge commented 4 years ago

Describe the bug When adding a sub-user to an instance an error is returned {ucfirst:instance.tools.list.client_does_not_exist}

To Reproduce Steps to reproduce the behavior:

  1. click Sub-users
  2. Click Create
  3. Enter an Email address and click create

Expected behavior A sub-user is created to be able to access the instance.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

JSON Response

{"error":{"status":"Client not found","code":"CLIENT_NOT_FOUND","stackTrace":[{"file":"/var/www/html/api/router/route/Route.php","line":0,"function":"execute","class":"Electrum\Userland\Api\Router\Routes\Instance\Subuser\Create","type":"->","args":[]},{"file":"/var/www/html/api/endpoint/Endpoint.php","line":0,"function":"execute","class":"Electrum\Api\Router\Route\Route","type":"->","args":[{},{}]},{"file":"/var/www/html/api/endpoint/Endpoint.php","line":0,"function":"execute","class":"Electrum\Api\Endpoint\Endpoint","type":"->","args":[]}]}}

Jesse-Schokker commented 4 years ago

The client you're trying to add must exist. It won't create the account for you if it doesn't yet exist.

I have fixed the issue with the missing translation.

aleforge commented 4 years ago

So how would a customer add a sub user then? Shouldn't this create and email the user if they don't exist?

Jesse-Schokker commented 4 years ago

I have plans to add an invitation system to the subuser system. I hope to add it after the initial release.