forgejo/routers/web/user/setting
KN4CK3R e378545f30
Filter inactive auth sources (#27870)
Fix nil access for inactive auth sources.

> Render failed, failed to render template:
user/settings/security/security, error: template error:
builtin(static):user/settings/security/accountlinks:32:20 : executing
"user/settings/security/accountlinks" at <$providerData.IconHTML>: nil
pointer evaluating oauth2.Provider.IconHTML

Code tries to access the auth source of an `ExternalLoginUser` but the
list contains only the active auth sources.
2023-11-02 01:46:26 +02:00
..
security Filter inactive auth sources (#27870) 2023-11-02 01:46:26 +02:00
account.go
account_test.go
adopt.go
applications.go
keys.go Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
main_test.go
oauth2.go
oauth2_common.go Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00
packages.go
profile.go Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
runner.go
webhooks.go Final round of db.DefaultContext refactor (#27587) 2023-10-14 08:37:24 +00:00