Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #21 from salgua/master

Forms enabled to work with CI CSRF embedded controls
  • Loading branch information...
commit 5e83e14f80fe7ab71a682b27f0ea014c9c10690b 2 parents 64a3a80 + 1e82398
@adamgriffiths authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  views/auth/pages/login.php
  2. +1 −1  views/auth/pages/register.php
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 />
Please sign in to comment.
Something went wrong with that request. Please try again.