Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sucssite
sso
Commits
82073b2b
Commit
82073b2b
authored
Oct 31, 2019
by
Imran Hussain
Browse files
Make sure details are set in every instance
parent
d8602d88
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/index.php
View file @
82073b2b
...
...
@@ -69,10 +69,12 @@ if ( isset($_POST["username"]) && isset($_POST["password"]) && !$RATELIMITED ) {
//do stuff for sucs auth
$DB_CON
->
exec
(
"UPDATE sessions SET sucs_username='${username}' WHERE id='${SESSIONID}'"
);
$SUCS_LOGIN
=
true
;
$details
[
"sucs_username"
]
=
$username
;
}
elseif
(
$isAuthd
==
"uni"
){
//do stuff for uni auth
$DB_CON
->
exec
(
"UPDATE sessions SET iss_username='${username}' WHERE id='${SESSIONID}'"
);
$ISS_LOGIN
=
true
;
$details
[
"iss_username"
]
=
$username
;
}
else
{
//do stuff for not authd peeps
$details
[
"failedlogincount"
]
=
$details
[
"failedlogincount"
]
+
1
;
...
...
Write
Preview
Supports
Markdown
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