diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-17 19:35:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-17 21:10:18 +0900 |
| commit | 95dd5f0c346d10c9a9497daf88cd199ce71c8122 (patch) | |
| tree | 6d3621b22cc44d7e93bc6a46b300479619d240d2 /backend/auth/auth.go | |
| parent | 48a70e06f54d81cdc6b0c22c2dcce8426b86decf (diff) | |
| download | phperkaigi-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.gz phperkaigi-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.zst phperkaigi-2025-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.zip | |
feat(backend): fetch user icon from fortee
Diffstat (limited to 'backend/auth/auth.go')
| -rw-r--r-- | backend/auth/auth.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backend/auth/auth.go b/backend/auth/auth.go index 10906f5..2266c50 100644 --- a/backend/auth/auth.go +++ b/backend/auth/auth.go @@ -3,11 +3,13 @@ package auth import ( "context" "errors" + "log" "time" "github.com/jackc/pgx/v5" "golang.org/x/crypto/bcrypt" + "github.com/nsfisis/iosdc-japan-2024-albatross/backend/account" "github.com/nsfisis/iosdc-japan-2024-albatross/backend/db" "github.com/nsfisis/iosdc-japan-2024-albatross/backend/fortee" ) @@ -98,6 +100,13 @@ func signup( }); err != nil { return 0, err } + go func() { + err := account.FetchIcon(context.Background(), queries, int(userID)) + if err != nil { + log.Printf("%v", err) + // The failure is intentionally ignored. Retry manually if needed. + } + }() return int(userID), nil } |
