gitea/modules/setting
wxiaoguang 4d1e2b8334
Fix token generation when using INTERNAL_TOKEN_URI (#21669)
Fix https://github.com/go-gitea/gitea/issues/21666
Caused by https://github.com/go-gitea/gitea/pull/19663

Before: when install, the INTERNAL_TOKEN was always generated and saved.
But the internal token may be already there by INTERNAL_TOKEN_URI

After: INTERNAL_TOKEN_URI file must be non-empty. When install, skip
internal token generation if the token exists.
2022-11-03 20:55:09 +00:00
..
attachment.go
cache.go
cors.go
cron_test.go
cron.go
database_sqlite.go
database_test.go
database.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
directory.go Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2022-10-24 20:29:17 +01:00
federation.go
git.go
i18n.go
indexer_test.go
indexer.go
lfs.go
log.go
mailer.go
markup.go
migrations.go
mime_type_map.go
mirror.go
oauth2_client.go
packages.go
picture.go
project.go
proxy.go
queue.go
repository.go
service.go
session.go
setting_test.go
setting.go Fix token generation when using INTERNAL_TOKEN_URI (#21669) 2022-11-03 20:55:09 +00:00
storage_test.go
storage.go
task.go
webhook.go