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

@@ -362,7 +362,7 @@ func (am *AuthentikManager) GetAllAccounts() (map[string][]*UserData, error) {
}
// CreateUser creates a new user in authentik Idp and sends an invitation.
func (am *AuthentikManager) CreateUser(email string, name string, accountID string) (*UserData, error) {
func (am *AuthentikManager) CreateUser(email, name, accountID, invitedByEmail string) (*UserData, error) {
ctx, err := am.authenticationContext()
if err != nil {
return nil, err