Open aleforge opened 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.
So how would a customer add a sub user then? Shouldn't this create and email the user if they don't exist?
I have plans to add an invitation system to the subuser system. I hope to add it after the initial release.
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:
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":[]}]}}