09-08-2017, 08:05 PM
Hi,
I'm having troubles when I want to adapt your code for my website. Everytime I get either 'Token doesn't match' or several errors: Notice: Undefined index: username in /Applications/MAMP/htdocs/igloo-new/users/classes/Validate.php on line 35
Notice: Undefined index: username in path/users/classes/Validate.php on line 35
Notice: Undefined index: password in path/users/classes/Validate.php on line 35
Notice: Undefined index: password in path/users/classes/Validate.php on line 35
Notice: Array to string conversion path/login.php on line 100
Notice: Array to string conversion in path/login.php on line 100
This is my code:
<pre></pre>
I just copied the rest.
Thanks for your answers!
I'm having troubles when I want to adapt your code for my website. Everytime I get either 'Token doesn't match' or several errors: Notice: Undefined index: username in /Applications/MAMP/htdocs/igloo-new/users/classes/Validate.php on line 35
Notice: Undefined index: username in path/users/classes/Validate.php on line 35
Notice: Undefined index: password in path/users/classes/Validate.php on line 35
Notice: Undefined index: password in path/users/classes/Validate.php on line 35
Notice: Array to string conversion path/login.php on line 100
Notice: Array to string conversion in path/login.php on line 100
This is my code:
<pre>
Code:
<form action="login.php" class="login-landlord" name="login-landlord" method="post">
<ul>
<li class="titre-login">Login as a landlord</li>
<li><input type="text" placeholder="Email"></li>
<li><input type="password" placeholder="Password"></li>
<li><input name="submit" type="submit" value="Login" class="btn" style="color:white"></li>
<li><input type="checkbox" name="remember" id="remember" > Remember Me</li>
<input type="hidden" name="csrf" value="<?=Token::generate(); ?>">
</ul>
</form>
I just copied the rest.
Thanks for your answers!