fix linter, cleanup
This commit is contained in:
parent
6832fe4990
commit
78e0d1bead
@ -215,7 +215,6 @@ class ConnectionManager {
|
||||
}
|
||||
|
||||
public async anonymousLogin(isBenchmark: boolean = false): Promise<void> {
|
||||
try {
|
||||
const data = await Axios.post(`${PUSHER_URL}/anonymLogin`).then((res) => res.data);
|
||||
this.localUser = new LocalUser(data.userUuid, []);
|
||||
this.authToken = data.authToken;
|
||||
@ -224,10 +223,6 @@ class ConnectionManager {
|
||||
localUserStore.saveUser(this.localUser);
|
||||
localUserStore.setAuthToken(this.authToken);
|
||||
}
|
||||
} catch (error) {
|
||||
// anonymous login failed (through 403 DISABLE_ANONYMOUS)
|
||||
this.loadOpenIDScreen();
|
||||
}
|
||||
}
|
||||
|
||||
public initBenchmark(): void {
|
||||
|
@ -89,7 +89,7 @@ export class MapController extends BaseController {
|
||||
const mapDetails = await adminApi.fetchMapDetails(query.playUri as string, userId);
|
||||
|
||||
if (isMapDetailsData(mapDetails) && DISABLE_ANONYMOUS) {
|
||||
(mapDetails as MapDetailsData).authenticationMandatory = true;
|
||||
mapDetails.authenticationMandatory = true;
|
||||
}
|
||||
|
||||
res.writeStatus("200 OK");
|
||||
|
Loading…
Reference in New Issue
Block a user