Implement local login
Route login and character requests by their original host names on one loopback port. Add local accounts, saves, and credential redaction.
This commit is contained in:
1 parent
5421268fbf
commit
18f63bf33e
55 files changed
+1559
-58
No files matched your search
@@ -0,0 +1,15 @@
|
||||
/** Char action names mapped to their handlers (full list of names: research-data/char_actions_37.json). */
|
||||
import type { PlayerProfiles } from '../../profile/player-profiles.ts';
|
||||
import type { CharActionHandler } from '../char-action.ts';
|
||||
import { initialMeta, legacyUserData } from './online-init-actions.ts';
|
||||
|
||||
export interface ActionDependencies {
|
||||
readonly profiles: PlayerProfiles;
|
||||
}
|
||||
|
||||
export function actionTable(deps: ActionDependencies): ReadonlyMap<string, CharActionHandler> {
|
||||
return new Map<string, CharActionHandler>([
|
||||
['cln_get_initial_meta', initialMeta()],
|
||||
['cln_legacy_get_userdata', legacyUserData(deps.profiles)],
|
||||
]);
|
||||
}
|
||||
Reference in new issue
Block a user