MMOframework
Pourquoi l'IA Playground Bibliothèques Développeurs Agence
FR EN
Créer un projet en direct
Index

mmo-user-access

1 symbole · générée le 30 Nov 2026

element

mmo-user-access

mmo-user-access.jhs:1

How an account gets in, in its form (mmo.oauth): a new account is invited by mail to choose its password -- the server mails it once saved, when it has an email and no password -- or given one now (the form's own <mmo-password>, slotted: slot="password"); an account saved has its actions, as the manager may (its rights, the server checking again): mail it a link to choose its password (shown when the mail cannot leave), end its sessions, remove its second factor. Its routes and the session's token are MMO.config.user.accounts.

<mmo-user-access></mmo-user-access>
Étend
CustomShadowElement
In a form (a `<view>`), the view's script hands it the account: `this.querySelector('mmo-user-access').entity = this.content`
<mmo-user-access><mmo-password slot="password" value="{password}"></mmo-password></mmo-user-access>

Index

entity accessor
config readonly accessor
init()
draw()Show what fits the account: a choice for a new one, the actions for one saved
choose(how)A new account: invited ($how invite, no password sent) or given one (password, the slotted field)
url(route)
call(route) async
invite() asyncMail the account a link to choose its password: the link shows when the mail cannot leave
act(route, question, detail) asyncDo $route to the account, once confirmed
copyLink()
password

Propriétés2

Méthodes8

draw()

mmo-user-access.jhs:54

Show what fits the account: a choice for a new one, the actions for one saved

draw()

choose(how)

mmo-user-access.jhs:80

A new account: invited ($how invite, no password sent) or given one (password, the slotted field)

choose(how)
how

call(route)

asyncmmo-user-access.jhs:97
async call(route)
route
retournePromise<Object>the answer's data; its meta.error.message thrown

invite()

asyncmmo-user-access.jhs:106

Mail the account a link to choose its password: the link shows when the mail cannot leave

async invite()

act(route, question, detail)

asyncmmo-user-access.jhs:120

Do $route to the account, once confirmed

async act(route, question, detail)
route
question
detail

Slots1