|
|
|
@@ -405,7 +405,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { |
|
|
|
ctx.Error(404) |
|
|
|
return |
|
|
|
} |
|
|
|
if repo.Name != form.RepoName { |
|
|
|
if repo.Alias != form.RepoName { |
|
|
|
ctx.RenderWithErr(ctx.Tr("form.enterred_invalid_repo_name"), tplSettingsOptions, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
@@ -432,7 +432,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { |
|
|
|
ctx.Error(404) |
|
|
|
return |
|
|
|
} |
|
|
|
if repo.Name != form.RepoName { |
|
|
|
if repo.Alias != form.RepoName { |
|
|
|
ctx.RenderWithErr(ctx.Tr("form.enterred_invalid_repo_name"), tplSettingsOptions, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
@@ -470,7 +470,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { |
|
|
|
ctx.Error(404) |
|
|
|
return |
|
|
|
} |
|
|
|
if repo.Name != form.RepoName { |
|
|
|
if repo.Alias != form.RepoName { |
|
|
|
ctx.RenderWithErr(ctx.Tr("form.enterred_invalid_repo_name"), tplSettingsOptions, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
@@ -490,7 +490,7 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { |
|
|
|
ctx.Error(404) |
|
|
|
return |
|
|
|
} |
|
|
|
if repo.Name != form.RepoName { |
|
|
|
if repo.Alias != form.RepoName { |
|
|
|
ctx.RenderWithErr(ctx.Tr("form.enterred_invalid_repo_name"), tplSettingsOptions, nil) |
|
|
|
return |
|
|
|
} |
|
|
|
|