public function changeUsername()
    {
        if ($this->validate()) {
            $username = $this->user->createUsername($this->username);
            if (!$username) {
                return false;
            }
            return $username->save();
        }
        return false;
    }
public function changeUsername()
    {
        if ($this->validate()) {
            $username = $this->user->createUsername($this->username);
            if (!$username) {
                return false;
            }
            return $username->save();
        }
        return false;
    }
public function changeUsername ( ) { if ( $ this -> validate ( ) ) { $ username = $ this -> user -> createUsername ( $ this -> username ) ; if ( ! $ username ) { return false ; } return $ username -> save ( ) ; } return false ; }
Change username.
@return bool
Change username .