Esempio n. 1
0
    _e('main.activate_success_msg');
    ?>
</p><br>
			<p><a href="login.php" class="btn btn-primary"><?php 
    _e('main.login');
    ?>
</a></p>
		<?php 
} else {
    ?>
			<h3 class="page-header"><?php 
    _e('main.activate_account');
    ?>
</h3>
			<?php 
    if (Register::fails()) {
        echo Register::errors()->first(null, '<div class="alert alert-danger">:message</div>');
    }
    ?>
			<p><a href="activation.php" class="v-middle"><?php 
    _e('main.resend_activation');
    ?>
</a></p>
		<?php 
}
?>
	</div>
</div>

<?php 
echo View::make('footer')->render();
Esempio n. 2
0
function ajax_activate()
{
    if (Auth::check()) {
        exit;
    }
    $reminder = isset($_POST['reminder']) ? $_POST['reminder'] : '';
    Register::activate($reminder);
    if (Register::passes()) {
        json_message();
    } else {
        json_message(Register::errors()->toArray(), false);
    }
}