forgejo/models
Dan Magnus Lindvall 79daf31058 Setting to disable authorized_keys backup (#1856)
* Add setting to disable authorized_keys backup when rewriting public keys

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Update default value to comply with documentation

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Use tmp-file instead of bak-file for saving manually added keys.

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Change casing

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Change casing and build bakpath with sprintf only

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Only close file once

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Do not modify calcFingerprint

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Fix casing

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Change style from disable to enable

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Change name, just SSH_BACKUP_AUTHORIZED_KEYS

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>

* Do not check for directory existence if backup is disabled

Signed-off-by: Magnus Lindvall <magnus@dnmgns.com>
2017-06-28 09:35:35 +08:00
..
fixtures Consolidate boilerplate in integration tests (#1979) 2017-06-17 12:49:45 +08:00
migrations Fix "Dashboard shows deleted comments" (#1995) 2017-06-25 20:20:29 +02:00
access.go
access_test.go
action.go Fix "Dashboard shows deleted comments" (#1995) 2017-06-25 20:20:29 +02:00
action_test.go Fix "Dashboard shows deleted comments" (#1995) 2017-06-25 20:20:29 +02:00
admin.go
admin_test.go
attachment.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
attachment_test.go
branches.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
consistency.go Fix activity feed (#1779) 2017-05-26 09:38:18 +08:00
error.go
error_oauth2.go
external_login_user.go
git_diff.go Fix diff of renamed and modified file (#1967) 2017-06-14 04:07:09 -05:00
git_diff_test.go Fix import order (#1951) 2017-06-12 10:01:09 -05:00
gpg_key.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
gpg_key_test.go Fix GPG email checking to be case insensitive (#1988) 2017-06-17 18:56:40 +08:00
graph.go
graph_test.go
helper.go
issue.go Fix default ghost assignee bug (#2069) 2017-06-28 09:27:12 +08:00
issue_comment.go Fix "Dashboard shows deleted comments" (#1995) 2017-06-25 20:20:29 +02:00
issue_indexer.go Fix import order (#1951) 2017-06-12 10:01:09 -05:00
issue_label.go Load label ID in NewLabels (#2045) 2017-06-25 14:15:09 +08:00
issue_label_test.go Load label ID in NewLabels (#2045) 2017-06-25 14:15:09 +08:00
issue_list.go Fix ghost user bug (#1913) 2017-06-09 09:51:31 +08:00
issue_list_test.go
issue_mail.go Enable assignee e-mail notification (#2003) 2017-06-23 21:43:37 +08:00
issue_milestone.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
issue_milestone_test.go Fix import order (#1951) 2017-06-12 10:01:09 -05:00
issue_test.go Fix misspelled variables 2017-06-04 13:39:08 -04:00
issue_user.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
issue_user_test.go
issue_watch.go Code style fixes 2017-04-01 09:58:20 -03:00
issue_watch_test.go
lfs.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
login_source.go fix bug not to trim space of login username (#1796) 2017-05-25 00:12:00 +08:00
mail.go xxx_active_code_live setting in printed in hours and minutes instead … (#1814) 2017-05-29 02:35:47 -05:00
main_test.go Run unused test 2017-06-04 14:28:17 -04:00
models.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
models_sqlite.go
models_test.go
models_tidb.go
notification.go
notification_test.go Consistency checks for unit tests (#853) 2017-02-07 19:47:55 +08:00
oauth2.go
org.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
org_team.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
org_team_test.go
org_test.go
pull.go Fix fast-forward PR bug (#1989) 2017-06-22 09:06:57 +08:00
pull_test.go
release.go
repo.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
repo_branch.go Gracefully handle bare repositories on API operations. (#1932) 2017-06-10 21:57:28 -05:00
repo_collaboration.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
repo_collaboration_test.go
repo_editor.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
repo_list.go
repo_list_test.go
repo_mirror.go Fix status table race condition (#1835) 2017-05-31 16:57:17 +08:00
repo_redirect.go
repo_redirect_test.go
repo_test.go Include formatting check to the make test (and thus also check) rule (#1366) 2017-06-06 08:53:16 -05:00
repo_unit.go
repo_watch.go
repo_watch_test.go
ssh_key.go Setting to disable authorized_keys backup (#1856) 2017-06-28 09:35:35 +08:00
ssh_key_test.go
star.go
star_test.go
status.go
status_test.go
test_fixtures.go
token.go
token_test.go
twofactor.go
unit.go
unit_tests.go Fix search by issue type (#1914) 2017-06-15 05:09:03 +02:00
update.go
update_test.go
user.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
user_follow.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
user_follow_test.go
user_mail.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
user_mail_test.go
user_openid.go
user_openid_test.go
user_test.go
webhook.go Refactor session close as xorm already does everything needed internally (#2020) 2017-06-21 08:57:05 +08:00
webhook_slack.go
webhook_test.go Add Gitea Webhook (#1755) 2017-05-29 02:17:15 -05:00
wiki.go Update code.gitea.io/git (#1824) 2017-05-30 04:32:01 -05:00
wiki_test.go