fixed api
This commit is contained in:
@@ -150,8 +150,8 @@ func (con Connection) signUp(c *gin.Context) {
|
||||
}
|
||||
|
||||
type SignInRequest struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Username string
|
||||
Password string
|
||||
}
|
||||
|
||||
func (con Connection) signIn(c *gin.Context) {
|
||||
@@ -186,7 +186,7 @@ func (con Connection) signIn(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
c.SetCookie("auth", signedToken, -1, "", "", false, false)
|
||||
c.SetCookie("auth", signedToken, -1, "", "", false, true)
|
||||
c.IndentedJSON(http.StatusOK, signedToken)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user