Support Forge Server Login account management and registration prompts
This commit is contained in:
1 parent
683cdc4016
commit
d0a696f013
5 files changed
+59
-7
No files matched your search
@@ -8,7 +8,7 @@ import {
|
||||
forceReregister,
|
||||
importFromWhitelist,
|
||||
} from "@/server/authflow";
|
||||
import { whitelistList, easyauthList } from "@/server/mc";
|
||||
import { whitelistList, easyauthList, authProvider, registrationCommand } from "@/server/mc";
|
||||
import { ok, fail, readJson, handle } from "@/server/api";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
@@ -23,7 +23,7 @@ export async function GET() {
|
||||
try {
|
||||
registered = await easyauthList();
|
||||
} catch {}
|
||||
return ok({ approved: listApproved(), whitelist, registered });
|
||||
return ok({ approved: listApproved(), whitelist, registered, authProvider: authProvider(), registrationCommand: registrationCommand() });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user