if (Input::method() == 'POST') {
$val->add('email', 'Email')
->add_rule('required');
$val->add('password', 'Mot de passe')
->add_rule('required');
$auth_Pro = Auth::instance('InstanceOne');
$auth_Pro->logout();
if ($val->run()) {
$auth = Auth::instance('InstanceTwo')
if (Auth::check('InstanceTwo') or $auth->login(Input::post('email'), Input::post('password'))) {
....
I must reload page for this code, in order to work.
Is there a way to make this works without reloading the page, to make it transparent for the user ?
Thanks for your help It looks like you're new here. If you want to get involved, click one of these buttons!