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
doorkey
Commits
82dcaeee
Commit
82dcaeee
authored
Nov 01, 2019
by
Imran Hussain
Browse files
Be more strict with doorkey checks
parent
032c9cfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/index.php
View file @
82dcaeee
...
...
@@ -39,11 +39,11 @@ curl_setopt($curlsso,CURLOPT_RETURNTRANSFER,TRUE);
$sso_result
=
json_decode
(
curl_exec
(
$curlsso
));
curl_close
(
$curlsso
);
if
(
!
$sso_result
->
apistate
===
"ok"
)
{
if
(
!
$sso_result
->
apistate
===
"ok"
||
$sso_result
->
sucs_username
===
""
)
{
$sso_error
=
true
;
}
if
(
$sso_result
->
sucs_username
!==
null
)
{
if
(
$sso_result
->
sucs_username
!==
null
&&
$sso_result
->
sucs_username
!==
""
)
{
$not_logged_in
=
false
;
$username
=
$sso_result
->
sucs_username
;
}
...
...
@@ -53,7 +53,7 @@ if ($not_logged_in === false && in_array($sso_result->sucs_username,$bannedUsers
//die("u r b&");
}
if
(
$_POST
[
"unlock"
]
===
"Unlock!"
&&
!
$outsider
&&
!
$banned
)
{
if
(
$_POST
[
"unlock"
]
===
"Unlock!"
&&
!
$outsider
&&
!
$banned
&&
!
$not_logged_in
)
{
include_once
(
"../doorkey.php"
);
//curl door
$curl
=
curl_init
();
...
...
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