diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-06-01 18:18:09 -0700 |
---|---|---|
committer | fguillot <fred@miniflux.net> | 2019-06-02 06:30:08 -0700 |
commit | 228862fefaa645026caa483ffe9993bf8c00b22e (patch) | |
tree | 2b590dc6cda3e50928a31ce673641357805f75ce /ui/oauth2.go | |
parent | 04d85b3c63afcf6c9539fc8dc7a91c4e36c2e8fb (diff) |
Refactor config package
- Parse configuration only once during startup time
- Store configuration values in a global variable
Diffstat (limited to 'ui/oauth2.go')
-rw-r--r-- | ui/oauth2.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/oauth2.go b/ui/oauth2.go index c5d594f..256137d 100644 --- a/ui/oauth2.go +++ b/ui/oauth2.go @@ -9,10 +9,10 @@ import ( "miniflux.app/oauth2" ) -func getOAuth2Manager(cfg *config.Config) *oauth2.Manager { +func getOAuth2Manager() *oauth2.Manager { return oauth2.NewManager( - cfg.OAuth2ClientID(), - cfg.OAuth2ClientSecret(), - cfg.OAuth2RedirectURL(), + config.Opts.OAuth2ClientID(), + config.Opts.OAuth2ClientSecret(), + config.Opts.OAuth2RedirectURL(), ) } |