| User profile page: | SopanShewale |
| Login name: | SopanShewale |
| E-mail: | • Separate multiple e-mail addresses by comma or space |
| Password: | |
| Retype password: | • Leave password fields empty unless you want to change it |
| Last password change: | 2010-09-29 09:47 GMT (2 days ago) |
| • Disabled accounts cannot login but remain in the system |
|
| |
TWiki::Users::Password base class declares these new methods:
{name} - name of field, such as "email"
{title} - title of field, such as "E-mail"
{value} - value of field, such as "jimmy@example.com"
{type} - type of field: text, password, checkbox, label
{size} - size of field, such as 40
{note} - comment note, if any
label, the form is considered read-only, thus will not show a save button.
Sample data record for TWikiAdminUser:
data->[
{ name => 'wikiname',
title => 'User profile page',
value => 'TWikiAdminUser',
type => 'label',
size => 40,
note => ''
},
{ name => 'cuid',
title => 'Canonical user ID',
value => 'BaseUserMapping_333',
type => 'label',
size => 40,
note => ''
},
{ name => 'login',
title => 'Login name',
value => admin,
type => 'label',
size => 40,
note => ''
},
{ name => 'emails',
title => 'E-mail',
value => 'peter@example.com',
type => 'label',
size => 40,
note => 'Can be changed in ={WebMasterEmail}= configure setting'
},
{ name => 'password',
title => 'Password',
value => '******',
type => 'label',
size => 40,
note => 'Can be changed in ={Password}= configure setting'
}
]
This is implemented for SVN:core/lib/TWiki/Users/BaseUserMapping.pm{name} and {value} are used.
Sub classes should return an empty string if save action is OK, or an error string starting with 'Error: '.
This is implemented for SVN:core/lib/TWiki/Users/BaseUserMapping.pm%USERMANAGER{ action="queryusers" filter="%URLPARAM{ "filter" encode="quote" }%" }%
2. Edit user data form
%USERMANAGER{ action="edituser" user="%URLPARAM{ "user" encode="quote" }%" }%
-- Contributors: PeterThoeny - 2010-10-02