Forms enabled to work with CI CSRF embedded controls #21

Merged
merged 2 commits into from Jun 4, 2012
View
2 views/auth/pages/login.php
@@ -2,7 +2,7 @@
<h2>Login</h2>
<div class="box">
- <form method="POST">
+ <?php echo form_open(); ?>
Username/Email:<br />
<input type="text" name="username" value="<?php echo set_value('username'); ?>" size="50" class="form" /><?php echo form_error('username'); ?><br /><br />
Password:<br />
View
2 views/auth/pages/register.php
@@ -7,7 +7,7 @@
<?php } ?>
<div class="box">
- <form method="post">
+ <?php echo form_open(); ?>
<?php if(empty($username)) { ?>
Username:<br />
<input type="text" name="username" size="50" class="form" value="<?php echo set_value('username'); ?>" /><br /><?php echo form_error('username'); ?><br />