/** * Handle login. * * @return bool True if the action was performed. */ protected function taskLogin() { if ($this->admin->authenticate($this->post)) { // should never reach here, redirects first } else { $this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.LOGIN_FAILED'), 'error'); } return true; }
/** * Handle login. * * @return bool True if the action was performed. */ protected function taskLogin() { $this->data['username'] = strip_tags(strtolower($this->data['username'])); if ($this->admin->authenticate($this->data, $this->post)) { // should never reach here, redirects first } else { $this->admin->setMessage($this->admin->translate('PLUGIN_ADMIN.LOGIN_FAILED'), 'error'); } return true; }
/** * Handle login. * * @return bool True if the action was performed. */ protected function taskLogin() { $l = $this->grav['language']; if ($this->admin->authenticate($this->post)) { // should never reach here, redirects first } else { $this->admin->setMessage($l->translate('LOGIN_FAILED'), 'error'); } return true; }