public function updateLogin($type = null)
    {
        $this->authenticated_as      = $type;
        $this->authenticated_at      = setTime('now');
        $this->failed_login_attempts = 0;
        $this->save();
    }
public function updateLogin($type = null)
    {
        $this->authenticated_as      = $type;
        $this->authenticated_at      = setTime('now');
        $this->failed_login_attempts = 0;
        $this->save();
    }
public function updateLogin ( $ type = null ) { $ this -> authenticated_as = $ type ; $ this -> authenticated_at = setTime ( 'now' ) ; $ this -> failed_login_attempts = 0 ; $ this -> save ( ) ; }
Track the log in details for this user.

@param null|string $type The way they tried to log in.
Track the log in details for this user .