diff options
author | Michael Jerger <michael.jerger@meissa-gmbh.de> | 2024-05-24 13:28:15 +0200 |
---|---|---|
committer | Michael Jerger <michael.jerger@meissa-gmbh.de> | 2024-05-24 13:28:15 +0200 |
commit | 82cb9e0203777a28a792cb29a709f0e62ae1b778 (patch) | |
tree | f30f0ba72ede4618fb431b40afc675ef5cbcfc8b /services/user | |
parent | Merge pull request 'Update dependency @playwright/test to v1.44.1' (#3879) fr... (diff) | |
download | forgejo-82cb9e0203777a28a792cb29a709f0e62ae1b778.tar.xz forgejo-82cb9e0203777a28a792cb29a709f0e62ae1b778.zip |
ui for adding following repos
Diffstat (limited to 'services/user')
-rw-r--r-- | services/user/user.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/services/user/user.go b/services/user/user.go index 9dc4f6fe62..4e983eb9f6 100644 --- a/services/user/user.go +++ b/services/user/user.go @@ -1,3 +1,4 @@ +// Copyright 2024 The Forgejo Authors. All rights reserved. // Copyright 2021 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT @@ -208,6 +209,13 @@ func DeleteUser(ctx context.Context, u *user_model.User, purge bool) error { return err } } + + // Delete Federated Users + if setting.Federation.Enabled { + if err := user_model.DeleteFederatedUser(ctx, u.ID); err != nil { + return err + } + } } ctx, committer, err := db.TxContext(ctx) |