Allow API to assign new user to a specific organization (#21775)

* Allow API to assign new user to a specific organization

* Add defer block to test

* Add API tests and return 400 instead of 500 for bad orgId

* Minor test improvements
This commit is contained in:
Émile Fugulin
2020-04-15 12:11:45 +03:00
committed by GitHub
parent da6056d5e1
commit d721dd13cd
8 changed files with 187 additions and 1 deletions
+1
View File
@@ -58,6 +58,7 @@ type CreateUserCommand struct {
Login string
Name string
Company string
OrgId int64
OrgName string
Password string
EmailVerified bool