This commit is contained in:
1 parent
092fe32baf
commit
5f63ee235b
2 files changed
+6
-4
No files matched your search
+2
-1
@@ -210,7 +210,8 @@ func Login(c *gin.Context) {
|
||||
c.JSON(http.StatusUnauthorized, gin.H{"error": "username or password is incorrect."})
|
||||
return
|
||||
} else {
|
||||
log.Printf("Login verified, returning token '%s'\n", token)
|
||||
//log.Printf("Login verified, returning token '%s'\n", token)
|
||||
log.Printf("Login verified, returning token\n")
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{"access_token": token})
|
||||
|
||||
Reference in new issue
Block a user