aboutsummaryrefslogtreecommitdiff
path: root/backend/controllers/loginController.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-04-24 18:38:48 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-04-24 18:38:48 +0300
commit9f8f895aebdb310508125cac153198d6f5b732c7 (patch)
treed76ce39c9163d1dd36d8b9bcee7491c9eb7fcd77 /backend/controllers/loginController.go
parentfeat: db transaction for record submission (#33) (diff)
downloadlphub-9f8f895aebdb310508125cac153198d6f5b732c7.tar.gz
lphub-9f8f895aebdb310508125cac153198d6f5b732c7.tar.bz2
lphub-9f8f895aebdb310508125cac153198d6f5b732c7.zip
feat: change username to user_name
Diffstat (limited to 'backend/controllers/loginController.go')
-rw-r--r--backend/controllers/loginController.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/controllers/loginController.go b/backend/controllers/loginController.go
index 6c0453b..4de4c00 100644
--- a/backend/controllers/loginController.go
+++ b/backend/controllers/loginController.go
@@ -56,7 +56,7 @@ func Login(c *gin.Context) {
56 user.LocCountryCode = "XX" 56 user.LocCountryCode = "XX"
57 } 57 }
58 // Insert new user to database 58 // Insert new user to database
59 database.DB.Exec(`INSERT INTO users (steam_id, username, avatar_link, country_code) 59 database.DB.Exec(`INSERT INTO users (steam_id, user_name, avatar_link, country_code)
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 // Generate JWT token 62 // Generate JWT token