Generates parity between remote auth login chain and the normal login chain (#8802)

Fixes #8773
Fixes #7895
This commit is contained in:
Erki
2020-05-06 16:15:56 +03:00
committed by GitHub
parent 96f7055355
commit 4b327dcfe9
28 changed files with 109 additions and 44 deletions
+2
View File
@@ -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.
+5 -2
View File
@@ -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//
//////////////