Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Commit

Permalink
Rename login_success.php to index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fethica committed Aug 20, 2014
1 parent c5ec744 commit c05ab58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion js/login.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $(document).ready ->
data: "myusername=" + username + "&mypassword=" + password
success: (html) ->
if html is "true"
window.location = "login_success.php"
window.location = "index.php"
else
$("#message").html html

Expand Down
2 changes: 1 addition & 1 deletion js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $(document).ready(function(){
data: "myusername="+username+"&mypassword="+password,
success: function(html){
if(html=='true') {
window.location="login_success.php";
window.location="index.php";
}
else {
$("#message").html(html);
Expand Down
4 changes: 2 additions & 2 deletions main_login.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
session_start();

if(isset($_SESSION['username'])){
header("location:login_success.php");
header("location:index.php");
}
?><!DOCTYPE html>
<html lang="en">
Expand Down

0 comments on commit c05ab58

Please sign in to comment.