revert csrf on login page. csrf needs to be off in order for zmNinja to work

pull/1894/merge
Isaac Connor 2017-05-30 11:25:25 -04:00
parent fe2155dd1a
commit 3062fe43f3
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ isset($view) || $view = NULL;
isset($request) || $request = NULL;
isset($action) || $action = NULL;
if ( ZM_ENABLE_CSRF_MAGIC ) {
if ( ZM_ENABLE_CSRF_MAGIC && $action != 'login' ) {
Logger::Debug("Calling csrf_check with the following values: \$request = \"$request\", \$view = \"$view\", \$action = \"$action\"");
csrf_check();
}