refactor: update use of SetAuthCookie
This commit is contained in:
parent
e7393085b4
commit
5861e95fb5
|
@ -118,8 +118,7 @@ func (a AccountAPI) login(jc jape.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
account.SetAuthCookie(jc, middleware.DEFAULT_AUTH_COOKIE_NAME, jwt)
|
||||
account.SetAuthCookie(jc, authCookieName, jwt)
|
||||
account.SetAuthCookie(jc, "")
|
||||
account.SendJWT(jc, jwt)
|
||||
|
||||
jc.Encode(&LoginResponse{
|
||||
|
@ -214,8 +213,7 @@ func (a AccountAPI) otpValidate(jc jape.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
account.SetAuthCookie(jc, middleware.DEFAULT_AUTH_COOKIE_NAME, jwt)
|
||||
account.SetAuthCookie(jc, authCookieName, jwt)
|
||||
account.SetAuthCookie(jc, "")
|
||||
account.SendJWT(jc, jwt)
|
||||
|
||||
jc.Encode(&LoginResponse{
|
||||
|
|
Loading…
Reference in New Issue