Permalink
Browse files

Remove remember me until i can think of a better solution. Closes #2

  • Loading branch information...
1 parent 14585df commit edaa1bb8f73d6f3c8b2e78b67f1b40e02fccd0c1 @joshf committed Dec 18, 2013
Showing with 0 additions and 23 deletions.
  1. +0 −19 login.php
  2. +0 −4 logout.php
View
@@ -17,18 +17,6 @@
}
mysql_select_db(DB_NAME, $con);
-
-//If cookie is set, skip login
-if (isset($_COOKIE["burden_user_rememberme"])) {
- $id = $_COOKIE["burden_user_rememberme"];
- $getid = mysql_query("SELECT `id` FROM `Users` WHERE `id` = \"$id\"");
- if (mysql_num_rows($getid) == 0) {
- header("Location: logout.php");
- exit;
- }
- $userinforesult = mysql_fetch_assoc($getid);
- $_SESSION["burden_user"] = $userinforesult["id"];
-}
if (isset($_POST["password"]) && isset($_POST["username"])) {
$username = mysql_real_escape_string($_POST["username"]);
@@ -123,13 +111,6 @@
<input type="password" id="password" name="password" class="input-block-level" placeholder="Password...">
</div>
</div>
-<div class="control-group">
-<div class="controls">
-<label class="checkbox">
-<input type="checkbox" id="rememberme" name="rememberme"> Remember Me
-</label>
-</div>
-</div>
<button type="submit" class="btn pull-right">Login</button>
</fieldset>
</form>
View
@@ -12,10 +12,6 @@
session_unset("burden_user");
-if (isset($_COOKIE["burden_user_rememberme"])) {
- setcookie("burden_user_rememberme", "", time()-86400);
-}
-
header("Location: login.php?logged_out=true");
exit;

0 comments on commit edaa1bb

Please sign in to comment.