Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sucssite
sso
Compare revisions
6a7a67c3911a81093e7555de921184b74b15a29b to 08d364c62d26a8c7b4a431582d1acb8dab9fe042
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
sucssite/sso
Select target project
No results found
08d364c62d26a8c7b4a431582d1acb8dab9fe042
Select Git revision
Branches
master
Swap
Target
sucssite/sso
Select target project
sucssite/sso
1 result
6a7a67c3911a81093e7555de921184b74b15a29b
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Fix a potential issue relating to username case, force everything to lowercase
· 7f83d7f2
Imran Hussain
authored
5 years ago
7f83d7f2
Tweak a bug introduced when making sure legacy site usernames are lowercase
· 08d364c6
Imran Hussain
authored
5 years ago
08d364c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.php
+3
-3
3 additions, 3 deletions
public/index.php
with
3 additions
and
3 deletions
public/index.php
View file @
08d364c6
...
...
@@ -63,7 +63,7 @@ if ( isset($_POST["username"]) && isset($_POST["password"]) && !$RATELIMITED ) {
require
(
"../lib/ldap-auth/ldap-auth.php"
);
$isAuthd
=
ldapAuth
(
$_POST
[
"username"
],
$_POST
[
"password"
]);
$username
=
$_POST
[
"username"
];
$username
=
strtolower
(
$_POST
[
"username"
]
)
;
if
(
$isAuthd
==
"sucs"
){
//do stuff for sucs auth
...
...
@@ -95,7 +95,7 @@ if ( isset($_POST["username"]) && isset($_POST["password"]) && !$RATELIMITED ) {
$db_connection
=
pg_connect
(
"dbname=sucssite"
);
$username
=
pg_fetch_result
(
pg_query_params
(
$db_connection
,
"SELECT * FROM session WHERE hash=$1"
,
array
(
$legacySessionID
)),
0
,
"username"
);
if
(
$username
!==
null
&&
$username
!==
false
)
{
if
(
$username
!==
null
&&
$username
!==
false
&&
username
!==
""
)
{
// we have a vlid username from a old session
$DB_CON
->
exec
(
"UPDATE sessions SET sucs_username='${username}' WHERE id='${SESSIONID}'"
);
$SUCS_LOGIN
=
true
;
...
...
@@ -234,4 +234,4 @@ if ($RATELIMITED) {
</body>
</html>
\ No newline at end of file
</html>
This diff is collapsed.
Click to expand it.