mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-26 12:17:36 -05:00
Replays: Use loginserver endpoint instead of PHP
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
Some checks failed
Node.js CI / build (22.x) (push) Has been cancelled
This commit is contained in:
@@ -49,7 +49,7 @@ export class SearchPanel extends preact.Component<{ id: string }> {
|
||||
loggedInUserIsSysop = false;
|
||||
sort = 'date';
|
||||
override componentDidMount() {
|
||||
if (!Net.defaultRoute) Net(`/check-login.php`).get().then(result => {
|
||||
if (!Net.defaultRoute) Net(`/api/replays/check-login`).get().then(result => {
|
||||
if (!result.startsWith(']')) return;
|
||||
const [userid, sysop] = result.slice(1).split(',');
|
||||
this.loggedInUser = userid;
|
||||
|
||||
Reference in New Issue
Block a user