Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

enable new accounts #79

Merged
merged 1 commit into from
Jul 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/enable-new-accounts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: enable new accounts by default

When new accounts are created, they also need to be enabled to be useable.

https://github.com/owncloud/ocis-proxy/pull/79
2 changes: 2 additions & 0 deletions pkg/middleware/account_uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ func createAccount(l log.Logger, claims *oidc.StandardClaims, ac acc.AccountsSer
OnPremisesSamAccountName: claims.PreferredUsername,
Mail: claims.Email,
CreationType: "LocalAccount",
AccountEnabled: true,
// TODO assign uidnumber and gidnumber? better do that in ocis-accounts as it can keep track of the next numbers
},
}
created, err := ac.CreateAccount(context.Background(), req)
Expand Down