Permalink
Browse files

Merge pull request #21 from salgua/master

Forms enabled to work with CI CSRF embedded controls
  • Loading branch information...
2 parents 64a3a80 + 1e82398 commit 5e83e14f80fe7ab71a682b27f0ea014c9c10690b @adamgriffiths committed Jun 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 views/auth/pages/login.php
  2. +1 −1 views/auth/pages/register.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 />
@@ -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 />

0 comments on commit 5e83e14

Please sign in to comment.