mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 20:37:34 +01:00
Auth System Changes (#21698)
Changes the Auth System to use the new login server to fetch the users/groups instead of the deprecated forumuserapi. Removes the ForumUserAPI and moves the admin authorization processes to a auth subsystem --------- Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
@@ -130,8 +130,8 @@
|
||||
/datum/topic_command/admins_reload/run_command(queryparams)
|
||||
log_and_message_admins("AdminRanks: remote reload of the admins list initiated.")
|
||||
|
||||
if (GLOB.config.use_forumuser_api)
|
||||
if (!update_admins_from_api(reload_once_done=FALSE))
|
||||
if (GLOB.config.use_authentik_api)
|
||||
if (!SSauth.update_admins_from_authentik(reload_once_done=TRUE))
|
||||
statuscode = 500
|
||||
response = "Updating admins from the forumuser API failed. Aborted."
|
||||
return FALSE
|
||||
@@ -141,6 +141,4 @@
|
||||
else
|
||||
statuscode = 200
|
||||
response = "Admins reloaded."
|
||||
|
||||
load_admins()
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user