MM-15889 Add unit tests for CSRF checks (#11058)

* MM-15889 Add unit tests for CSRF checks

* Moved CSRF token test to login tests

* Remove empty test

* Remove debug messages
Этот коммит содержится в:
Harrison Healey
2019-06-11 15:09:00 -04:00
коммит произвёл GitHub
родитель 28cf642ccb
Коммит 803ce61ef8
8 изменённых файлов: 300 добавлений и 80 удалений

Просмотреть файл

@@ -132,6 +132,8 @@ func completeSaml(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
c.App.AttachSessionCookies(w, r, session)
c.App.Session = *session
if val, ok := relayProps["redirect_to"]; ok {