Specify invited by email when inviting a user (#1087)

This commit is contained in:
Misha Bragin
2023-08-16 23:05:22 +02:00
committed by GitHub
parent 4572c6c1f8
commit 8e3bcd57a2
10 changed files with 22 additions and 14 deletions

View File

@@ -234,7 +234,7 @@ func (zc *ZitadelCredentials) Authenticate() (JWTToken, error) {
}
// CreateUser creates a new user in zitadel Idp and sends an invite.
func (zm *ZitadelManager) CreateUser(email string, name string, accountID string) (*UserData, error) {
func (zm *ZitadelManager) CreateUser(email, name, accountID, invitedByEmail string) (*UserData, error) {
payload, err := buildZitadelCreateUserRequestPayload(email, name)
if err != nil {
return nil, err