Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

ahjoyo / idc0007

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 5a8dbc7d authored 6 years ago by mhasan's avatar mhasan
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

case sensitive searches

parent c84053bf master
Hide whitespace changes
Inline Side-by-side
Showing with 2 additions and 2 deletions
  • index.php
  • php/index.php → php/notindex.php
index.php
View file @ 5a8dbc7d
......@@ -27,7 +27,7 @@ if (isset($_POST['submit'])) {
require "php/db_conn.php";
$e = null;
$querry = sprintf("SELECT passHash FROM login WHERE userName = '%s' ;", $_POST['userName']);
$querry = sprintf("SELECT passHash FROM login WHERE userName = BINARY '%s' ;", $_POST['userName']);
$pdo_st = $pdo->query($querry);
$pdo_st->setFetchMode(PDO::FETCH_ASSOC);
......
This diff is collapsed. Click to expand it.
php/index.php → php/notindex.php
View file @ 5a8dbc7d
......@@ -15,7 +15,7 @@ if (isset($_POST['submit'])) {
if ($isMatch == true) {
session_start();
$_SESSION['userName'] = $_POST['userName']; //Starts the session with the username!
header("location: ../view.php"); //redirects user to view page upon successful login!
// header("location: ../view.php"); //redirects user to view page upon successful login!
}
else {
header("location: ../index.php"); //redirects to the index page upon login failure.
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment