WebUser::updateLastLoginAt PHP Method

updateLastLoginAt() public method

Updates the users last login at field.
public updateLastLoginAt ( ) : boolean
return boolean whether the update was successful.
    public function updateLastLoginAt()
    {
        if (!$this->isGuest) {
            if (($model = $this->loadModel()) !== null) {
                $model->lastLoginAt = sqlDateTime();
                return $model->save(true, array('lastLoginAt'));
            }
        }
        return false;
    }