refactor: need to pass api name to SetAuthCookie
This commit is contained in:
parent
ee8fa2b98d
commit
be7a7977ac
|
@ -120,7 +120,7 @@ func (a AccountAPI) login(jc jape.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
account.SetAuthCookie(jc, jwt, "")
|
||||
account.SetAuthCookie(jc, jwt, a.Name())
|
||||
account.SendJWT(jc, jwt)
|
||||
|
||||
jc.Encode(&LoginResponse{
|
||||
|
|
Loading…
Reference in New Issue