TBH I'm not sure how to write a unit test for this, I think this could effectively be only tested by something like Selenium.
(Without this PR, clicking the force logout button returns 404, since it's a GET request and the server thinks that user is trying to access "forcelogout" repo under "settings" namespace)
Doesn't it need a CSRF token? If not then I think we should fix that while at it
Right now it doesn't since the endpoint is not using a WTForm. I'll add it.
rebased onto 2200ff4378efc8172850b2f07ec05f1984f049c1
Added a form to check for csrf and rebased.
LGTM and Jenkins is happy :) Thanks
Pull-Request has been merged by cverna
TBH I'm not sure how to write a unit test for this, I think this could effectively be only tested by something like Selenium.