Skip to content

Commit 72959dc

Browse files
committed
Use a suitable word for deletion of user data
1 parent d647042 commit 72959dc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2483,5 +2483,5 @@ ROUTER = console
24832483
;PROXY_HOSTS =
24842484

24852485
;[user]
2486-
; Disabled modules from user settings, could be passwods, suicide, security, applications, gpg keys, organiztions
2486+
; Disabled modules from user settings, could be passwods, deletion, security, applications, gpg keys, organiztions
24872487
;USER_SETTING_DISABLED_MODULES =

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,10 @@ PROXY_URL = socks://127.0.0.1:1080
12841284
PROXY_HOSTS = *.github.com
12851285
```
12861286

1287+
## User (`user`)
1288+
1289+
- `USER_SETTING_DISABLED_MODULES`:**** Disabled modules from user settings, could be passwods, deletion, security, applications, gpg keys, organiztions
1290+
12871291
## Other (`other`)
12881292

12891293
- `SHOW_FOOTER_BRANDING`: **false**: Show Gitea branding in the footer.

routers/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ func RegisterRoutes(m *web.Route) {
422422
m.Combo("").Get(user_setting.Account).Post(bindIgnErr(forms.ChangePasswordForm{}), user_setting.AccountPost)
423423
m.Post("/email", bindIgnErr(forms.AddEmailForm{}), user_setting.EmailPost)
424424
m.Post("/email/delete", user_setting.DeleteEmail)
425-
m.Post("/delete", userSettingModuleEnabled("suicide"), user_setting.DeleteAccount)
425+
m.Post("/delete", userSettingModuleEnabled("deletion"), user_setting.DeleteAccount)
426426
})
427427
m.Group("/appearance", func() {
428428
m.Get("", user_setting.Appearance)

0 commit comments

Comments
 (0)