MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

mmo-password

1 symbole · générée le 27 Oct 2026

element

mmo-password

mmo-password.jhs:1

Password element to display a password input and a confirm password input, each with its eye (<mmo-reveal>), and a button that generates one (a real <button>: Tab reaches it, Enter or Space presses it).

<mmo-password pattern required value></mmo-password>
Étend
CustomElement
It never shows a password it is given (a stored hash, what a browser would autofill): its `value` is only what the user typed, once the confirmation matches it, and empty otherwise -- an entity bound to it then sends an empty password, which keeps the one its account has (mmo.oauth's `tUser::loadPassword`).

Index

patternthe pattern of the password
requiredif true, the password is required
valuethe new password, once typed and confirmed (empty otherwise)
ViewDefault static readonly accessor
pattern accessorGet the pattern of the password
value accessorGet the value of the password
required accessorGet the required of the password
init()
showPassword(value)Show the password, in both fields
generatePassword()Generate a random password then set it in the password and confirm password inputs
updatePassword()Update the password Check if the password is valid and if the confirm password is the same as the password

Attributs3

value

mmo-password.jhs

the new password, once typed and confirmed (empty otherwise)

value

Propriétés4

pattern

accessormmo-password.jhs:51

Get the pattern of the password

get pattern() set pattern(value)
Type
string

value

accessormmo-password.jhs:71

Get the value of the password

get value() set value(value)
Type
string

required

accessormmo-password.jhs:92

Get the required of the password

get required() set required(value)
Type
boolean

Méthodes4

showPassword(value)

mmo-password.jhs:122

Show the password, in both fields

showPassword(value = null)
value = null?boolean- true shows it, false hides it, null toggles

generatePassword()

mmo-password.jhs:131

Generate a random password then set it in the password and confirm password inputs

generatePassword()

updatePassword()

mmo-password.jhs:146

Update the password Check if the password is valid and if the confirm password is the same as the password

updatePassword()