Skip to content
Permalink
Browse files Browse the repository at this point in the history
Remove remember me until i can think of a better solution. Closes #2
  • Loading branch information
joshf committed Dec 18, 2013
1 parent 14585df commit edaa1bb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions login.php
Expand Up @@ -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"]);
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions logout.php
Expand Up @@ -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;
Expand Down

0 comments on commit edaa1bb

Please sign in to comment.