when session id is invalid,the function "revokeSession" should return (#7127)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
ab13de96a0
Коммит
504582b824
@@ -926,6 +926,7 @@ func revokeSession(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
if sessionId == "" {
|
if sessionId == "" {
|
||||||
c.SetInvalidParam("session_id")
|
c.SetInvalidParam("session_id")
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := app.RevokeSessionById(sessionId); err != nil {
|
if err := app.RevokeSessionById(sessionId); err != nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user