diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-24 09:30:58 +0000 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-24 09:31:18 +0000 |
| commit | db665af84a047d290ea204a4c7a55115dd1fa728 (patch) | |
| tree | bb61b211d9c633516e8056d3656c34d93d607887 /backend/controllers/loginController.go | |
| parent | docs: update license name in disclaimer (diff) | |
| download | lphub-db665af84a047d290ea204a4c7a55115dd1fa728.tar.gz lphub-db665af84a047d290ea204a4c7a55115dd1fa728.tar.bz2 lphub-db665af84a047d290ea204a4c7a55115dd1fa728.zip | |
fix: change title handling and login not working (#49)
Former-commit-id: b18e6b1d7d5aa68d14d656167d0250a4881dc7a4
Diffstat (limited to 'backend/controllers/loginController.go')
| -rw-r--r-- | backend/controllers/loginController.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/controllers/loginController.go b/backend/controllers/loginController.go index e907b22..cc7a803 100644 --- a/backend/controllers/loginController.go +++ b/backend/controllers/loginController.go | |||
| @@ -60,7 +60,7 @@ func Login(c *gin.Context) { | |||
| 60 | VALUES ($1, $2, $3, $4)`, steamID, user.PersonaName, user.AvatarFull, user.LocCountryCode) | 60 | VALUES ($1, $2, $3, $4)`, steamID, user.PersonaName, user.AvatarFull, user.LocCountryCode) |
| 61 | } | 61 | } |
| 62 | moderator := false | 62 | moderator := false |
| 63 | rows, _ := database.DB.Query("SELECT title_name FROM titles WHERE user_id = $1", steamID) | 63 | rows, _ := database.DB.Query("SELECT title_name FROM titles t INNER JOIN user_titles ut ON t.id=ut.title_id WHERE ut.user_id = $1", steamID) |
| 64 | for rows.Next() { | 64 | for rows.Next() { |
| 65 | var title string | 65 | var title string |
| 66 | rows.Scan(&title) | 66 | rows.Scan(&title) |