Merge branch 'develop' of github.com:thecodingmachine/workadventure
This commit is contained in:
@@ -36,11 +36,11 @@ export class GameManager {
|
||||
this.startRoom = await connectionManager.initGameConnexion();
|
||||
this.loadMap(this.startRoom);
|
||||
|
||||
if(!this.playerName) {
|
||||
if (!this.playerName) {
|
||||
const res = await Axios.get("/");
|
||||
this.playerName = res.headers['bstlyusername'];
|
||||
this.playerName = res.headers[ 'bstlyusername' ];
|
||||
}
|
||||
|
||||
|
||||
//If player name was not set show login scene with player name
|
||||
//If Room si not public and Auth was not set, show login scene to authenticate user (OpenID - SSO - Anonymous)
|
||||
if (!this.playerName || (this.startRoom.authenticationMandatory && !localUserStore.getAuthToken())) {
|
||||
|
||||
Reference in New Issue
Block a user