login() public method

Redirect to the login page $redirect_url is to send the user back to where he/she came from after login
public login ( string | null $redirect_url = null )
$redirect_url string | null
コード例 #1
0
 /**
  * logout
  *
  */
 public function logOut()
 {
     $this->login->logOut(Session::getUserId());
     Redirector::login();
 }