예제 #1
0
        if (isset($_POST['email'])) {
            $data['email'] = $_POST['email'];
        }
        foreach (UserFields::all('signup') as $key => $field) {
            if (isset($_POST[$key])) {
                $data['usermeta'][$key] = escape($_POST[$key]);
            }
        }
    }
    if (OAuth::signup($provider, $data)) {
        OAuth::login($provider, $user['id']);
    }
} else {
    OAuth::login($provider, $user['id']);
}
if (OAuth::passes()) {
    $url = Config::get('auth.login_redirect');
    $url = empty($url) ? App::url() : $url;
    redirect_to($url);
}
?>

<?php 
echo View::make('header')->render();
?>

<div class="row">
	<div class="col-md-6">
		<h3 class="page-header">
			<?php 
_e('main.connecting_with');