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