예제 #1
0
function signIn()
{
    $username = $_REQUEST['username'];
    $password = $_REQUEST['password'];
    include_once "../model/Seller.php";
    $seller = new Seller();
    if ($seller->signInShopkeeper($username, $password)) {
        echo '{"result": 1, "message": "Signed in successfully"}';
        return;
    }
    echo '{"result": 0, "message": "Sign in was unsuccessful"}';
    return;
}