diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-07-12 08:38:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-12 08:38:26 +0300 |
| commit | 00dd4e118918d2111dfbe8829a8fa8c44d1bf75f (patch) | |
| tree | 36ee11616f75a167b9f22353b694274cce302aed /backend | |
| parent | docs: add missing nosla/sla history (#186) (diff) | |
| download | lphub-00dd4e118918d2111dfbe8829a8fa8c44d1bf75f.tar.gz lphub-00dd4e118918d2111dfbe8829a8fa8c44d1bf75f.tar.bz2 lphub-00dd4e118918d2111dfbe8829a8fa8c44d1bf75f.zip | |
fix: empty country code on new account (#187)
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/handlers/login.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/handlers/login.go b/backend/handlers/login.go index a6e99bd..8794989 100644 --- a/backend/handlers/login.go +++ b/backend/handlers/login.go | |||
| @@ -53,7 +53,7 @@ func Login(c *gin.Context) { | |||
| 53 | return | 53 | return |
| 54 | } | 54 | } |
| 55 | // Empty country code check | 55 | // Empty country code check |
| 56 | if user.LocCountryCode == "" { | 56 | if user.LocCountryCode == "" || user.LocCountryCode == " " { |
| 57 | user.LocCountryCode = "XX" | 57 | user.LocCountryCode = "XX" |
| 58 | } | 58 | } |
| 59 | // Insert new user to database | 59 | // Insert new user to database |