mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Generates parity between remote auth login chain and the normal login chain (#8802)
Fixes #8773 Fixes #7895
This commit is contained in:
@@ -75,3 +75,5 @@
|
||||
var/obj/screen/plane_master/parallax_spacemaster/parallax_spacemaster = null
|
||||
|
||||
var/authed = TRUE
|
||||
|
||||
var/is_initialized = FALSE // Used to track whether the client has been initialized with InitClient.
|
||||
|
||||
@@ -350,17 +350,18 @@
|
||||
return 0
|
||||
|
||||
if(IsGuestKey(key) && config.external_auth)
|
||||
//src.real_mob = ..()
|
||||
src.authed = FALSE
|
||||
var/mob/abstract/unauthed/m = new()
|
||||
m.client = src
|
||||
src.InitPrefs() //Init some default prefs
|
||||
m.LateLogin()
|
||||
return m
|
||||
//Do auth shit
|
||||
else
|
||||
. = ..()
|
||||
src.InitClient()
|
||||
src.InitPrefs()
|
||||
. = ..()
|
||||
mob.LateLogin()
|
||||
|
||||
/client/proc/InitPrefs()
|
||||
//preferences datum - also holds some persistant data for the client (because we may as well keep these datums to a minimum)
|
||||
@@ -446,6 +447,8 @@
|
||||
|
||||
fetch_unacked_warning_count()
|
||||
|
||||
is_initialized = TRUE
|
||||
|
||||
//////////////
|
||||
//DISCONNECT//
|
||||
//////////////
|
||||
|
||||
Reference in New Issue
Block a user