diff --git a/changelog/unreleased/enable-new-accounts.md b/changelog/unreleased/enable-new-accounts.md new file mode 100644 index 0000000000..98e52fd631 --- /dev/null +++ b/changelog/unreleased/enable-new-accounts.md @@ -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 diff --git a/pkg/middleware/account_uuid.go b/pkg/middleware/account_uuid.go index d7969f9dda..cb405ac1cd 100644 --- a/pkg/middleware/account_uuid.go +++ b/pkg/middleware/account_uuid.go @@ -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)