diff options
| -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 |