src/Webiny/Login/Login.php
public function setUserBlockedStatus($username, $blocked = true)
    {
        $this->username = $username;
        $this->getMeta()->blocked = $blocked;
        $this->getMeta()->save();
    }
public function setUserBlockedStatus($username, $blocked = true)
    {
        $this->username = $username;
        $this->getMeta()->blocked = $blocked;
        $this->getMeta()->save();
    }
public function setUserBlockedStatus ( $ username , $ blocked = true ) { $ this -> username = $ username ; $ this -> getMeta ( ) -> blocked = $ blocked ; $ this -> getMeta ( ) -> save ( ) ; }
Change the `blocked` user account status flag.

@param      $username
@param bool $blocked

@throws LoginException
Change the blocked user account status flag .