mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
specify openid realm
This commit is contained in:
parent
183b994f72
commit
693c33c61d
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class AuthController extends BaseController {
|
|||
public function login($token) {
|
||||
$_SESSION['return'] = $this->query('return', 'https://' . $this->host);
|
||||
$steam = new SteamLogin();
|
||||
$url = $steam->url($this->apiRoot . '/auth/handle/' . urlencode($token));
|
||||
$url = $steam->url($this->apiRoot . '/auth/handle/' . urlencode($token), $this->apiRoot);
|
||||
\Flight::redirect(str_replace('&', '&', $url)); // headers make no sense
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ class AuthController extends BaseController {
|
|||
}
|
||||
|
||||
public function handle($token) {
|
||||
$return = isset($_SESSION['return']) ? $_SESSION['return'] : 'https://' . $this->host;
|
||||
$return = $_SESSION['return'] ?? 'https://' . $this->host;
|
||||
unset($_SESSION['return']);
|
||||
$steam = new SteamLogin();
|
||||
$steamId = $steam->validate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue