Skip to content

Commit 22e2140

Browse files
TheMagician23wxiaoguang
authored andcommitted
Remove duplicate option in admin screen and now-unused translation keys (go-gitea#28492)
Resolves go-gitea#28451. This change follows the recommendation by wxiaoguang to remove the "Disable Minimum Key Size Check" from the "Service Configuration" section of the UI, because this option belongs to the "SSH Configuration" section of the administration menu and already has a functioning indicator in that section of the UI. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent 3170a2d commit 22e2140

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

options/locale/locale_en-US.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3081,7 +3081,6 @@ config.enable_openid_signin = Enable OpenID Sign-In
30813081
config.show_registration_button = Show Register Button
30823082
config.require_sign_in_view = Require Sign-In to View Pages
30833083
config.mail_notify = Enable Email Notifications
3084-
config.disable_key_size_check = Disable Minimum Key Size Check
30853084
config.enable_captcha = Enable CAPTCHA
30863085
config.active_code_lives = Active Code Lives
30873086
config.reset_password_code_lives = Recover Account Code Expiry Time

templates/admin/config.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@
151151
<dd>{{if .Service.RequireSignInView}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
152152
<dt>{{ctx.Locale.Tr "admin.config.mail_notify"}}</dt>
153153
<dd>{{if .Service.EnableNotifyMail}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
154-
<dt>{{ctx.Locale.Tr "admin.config.disable_key_size_check"}}</dt>
155-
<dd>{{if .SSH.MinimumKeySizeCheck}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
156154
<dt>{{ctx.Locale.Tr "admin.config.enable_captcha"}}</dt>
157155
<dd>{{if .Service.EnableCaptcha}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd>
158156
<dt>{{ctx.Locale.Tr "admin.config.default_keep_email_private"}}</dt>

0 commit comments

Comments
 (0)