Fix external auth menu (#12174)

SORT OF.

I'm not sure why it doesn't auto close: there's no runtimes from this stack or nothing. I rejigged the names, maybe "auth" is special? Well, regardless, I gave it an "X" button so you can at least close it yourself now!
This commit is contained in:
Erki
2021-07-11 18:05:32 +03:00
committed by GitHub
parent 7236503149
commit c716aa9686
2 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
uihtml += "<a href='?src=\ref[src];authaction=forums'>Login via forums</a>"
if(!config.guests_allowed && config.webint_url && config.external_auth)
src.OpenForumAuthWindow()
show_browser(src, uihtml, "window=auth;size=300x300;border=0;can_close=0;can_resize=0;can_minimize=0;titlebar=1")
show_browser(src, uihtml, "window=externalauth;size=300x300;border=0;can_close=1;can_resize=0;can_minimize=0;titlebar=1")
timeout_timer = addtimer(CALLBACK(src, .proc/timeout), 900, TIMER_STOPPABLE)
/mob/abstract/unauthed/proc/timeout()
@@ -40,7 +40,7 @@
deltimer(timeout_timer)
var/client/c = client // so we don't lose the client in the current mob.
show_browser(src, null, "window=auth;")
show_browser(src, null, "window=externalauth")
c.verbs += typesof(/client/verb) // Let's return regular client verbs
c.authed = TRUE // We declare client as authed now
c.prefs = null //Null them so we can load them from the db again for the correct ckey