<?php
require_once "../oc-load.php";
require_once LIB_PATH . 'osclass/UserActions.php';
osc_run_hook('before_validating_login');
$email = "
info@osclass.org"; //$_POST['email'];
$pass = "osclass"; //$_POST['pass'];
$user = User::newInstance()->findByEmail($email);
if(osc_verify_password($pass,$user['s_password'])) {
echo "Everything OK, Go Ahead <br>";
echo " User Id : ".osc_logged_user_id();
}else{
echo "There is some problems is user details";
}