Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ahjoyo
/
idc0007
This project
Loading...
Sign in
Toggle navigation
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
5 years ago
by
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
2 changed files
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/
not
index.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%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment