예제 #1
0
파일: controller.php 프로젝트: clee03/metal
 /**
  * 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;
 }
예제 #2
0
 /**
  * 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;
 }
예제 #3
0
 /**
  * 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;
 }