mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-25 03:32:06 +02:00
removed duplication
This commit is contained in:
@@ -28,9 +28,9 @@ func SSHKeys(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
keypair, err := ssh_module.GetOrCreateSSHKeypairForOrg(ctx, ctx.Org.Organization.ID)
|
||||
keypair, err := ssh_module.GetOrCreateSSHKeypair(ctx, ctx.Org.Organization.ID)
|
||||
if err != nil {
|
||||
ctx.ServerError("GetOrCreateSSHKeypairForOrg", err)
|
||||
ctx.ServerError("GetOrCreateSSHKeypair", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -343,7 +343,7 @@ func loadKeysData(ctx *context.Context) {
|
||||
ctx.Data["UserDisabledFeatures"] = user_model.DisabledFeaturesWithLoginType(ctx.Doer)
|
||||
|
||||
// Load SSH mirror keypair if it exists
|
||||
mirrorKeypair, err := ssh_module.GetOrCreateSSHKeypairForUser(ctx, ctx.Doer.ID)
|
||||
mirrorKeypair, err := ssh_module.GetOrCreateSSHKeypair(ctx, ctx.Doer.ID)
|
||||
if err == nil {
|
||||
ctx.Data["HasManagedSSHKey"] = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user