diff options
author | 2024-02-27 17:19:38 +0100 | |
---|---|---|
committer | 2024-02-28 19:24:41 -0800 | |
commit | 5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c (patch) | |
tree | 992245da4fdf2ef81448dc6fb4c126d98a478304 /internal/ui/oauth2_callback.go | |
parent | b4ed17fbac15d71fa379ca463d63c7e36d833fd2 (diff) | |
download | v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.tar.gz v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.tar.zst v2-5a7d6f89975959e0a1a63f1ac68d5bb41f01ab2c.zip |
Make use of printer.Print when possible
Diffstat (limited to 'internal/ui/oauth2_callback.go')
-rw-r--r-- | internal/ui/oauth2_callback.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/ui/oauth2_callback.go b/internal/ui/oauth2_callback.go index cf223da8..09c03b80 100644 --- a/internal/ui/oauth2_callback.go +++ b/internal/ui/oauth2_callback.go @@ -81,7 +81,7 @@ func (h *handler) oauth2Callback(w http.ResponseWriter, r *http.Request) { slog.String("oauth2_provider", provider), slog.String("oauth2_profile_id", profile.ID), ) - sess.NewFlashErrorMessage(printer.Printf("error.duplicate_linked_account")) + sess.NewFlashErrorMessage(printer.Print("error.duplicate_linked_account")) html.Redirect(w, r, route.Path(h.router, "settings")) return } @@ -92,7 +92,7 @@ func (h *handler) oauth2Callback(w http.ResponseWriter, r *http.Request) { return } - sess.NewFlashMessage(printer.Printf("alert.account_linked")) + sess.NewFlashMessage(printer.Print("alert.account_linked")) html.Redirect(w, r, route.Path(h.router, "settings")) return } @@ -110,7 +110,7 @@ func (h *handler) oauth2Callback(w http.ResponseWriter, r *http.Request) { } if h.store.UserExists(profile.Username) { - html.BadRequest(w, r, errors.New(printer.Printf("error.user_already_exists"))) + html.BadRequest(w, r, errors.New(printer.Print("error.user_already_exists"))) return } |