MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / UserChangePassword

Function UserChangePassword

packages/xadmin-auth/src/models.js:88–120  ·  view source on GitHub ↗
({ context: { _t } })

Source from the content-addressed store, hash-verified

86})
87
88const UserChangePassword = ({ context: { _t } }) => ({
89 type: 'object',
90 name: 'user_change_password',
91 resource: 'user/password',
92 title: _t('Change Password'),
93 properties: {
94 old_password: {
95 title: _t('Old Password'),
96 type: 'string',
97 maxLength: 12,
98 minLength: 6
99 },
100 new_password: {
101 title: _t('New Password'),
102 type: 'string',
103 maxLength: 12,
104 minLength: 6
105 },
106 new_password2: {
107 title: _t('Repeat Password'),
108 type: 'string',
109 maxLength: 12,
110 minLength: 6,
111 const: { $data: '1/new_password', constantName: _t('New Password') }
112 }
113 },
114 required: [ 'old_password', 'new_password', 'new_password2' ],
115 form: [
116 { key: 'old_password', attrs: { type: 'password' } },
117 { key: 'new_password', attrs: { type: 'password' } },
118 { key: 'new_password2', attrs: { type: 'password' } }
119 ]
120})
121
122const UserSignUp = ({ context: { _t } }) => ({
123 type: 'object',

Callers 1

mappers.jsFile · 0.90

Calls 1

_tFunction · 0.50

Tested by

no test coverage detected