Skip to content
Snippets Groups Projects
Commit 9f2ca85e authored by Demian Katz's avatar Demian Katz
Browse files

Simplified code.

parent 1c1c33e4
No related merge requests found
......@@ -115,12 +115,10 @@ class MyResearchController extends AbstractBase
// if the current auth class proxies others, we'll get the proxied
// auth method as a querystring or post parameter.
// Force to post.
$method = trim($this->params()->fromQuery('auth_method'));
if ($method) {
$this->getRequest()->setPost(
$this->getRequest()->getPost()->set('auth_method', $method)
);
if ($method = trim($this->params()->fromQuery('auth_method'))) {
$this->getRequest()->getPost()->set('auth_method', $method);
}
// Process login request, if necessary (either because a form has been
// submitted or because we're using an external login provider):
if ($this->params()->fromPost('processLogin')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment