src/liteAuth.php
public function loginFromPost($user = 'user', $pass='pass')
    {
        if(isset($_POST[$user]) && isset($_POST[$pass]))
            return $this->login($_POST[$user], $_POST[$pass]);
    }
public function loginFromPost($user = 'user', $pass='pass')
    {
        if(isset($_POST[$user]) && isset($_POST[$pass]))
            return $this->login($_POST[$user], $_POST[$pass]);
    }
A helper function which looks for $_POST['user'] and $_POST['pass'] variables, and
attempts to log in using them