<<O>> Difference Topic ManagingUsers (9 - 2011-06-05 - TWikiContributor) |
Manage UsersRegister users on your TWiki site; change/reset/install passwords; remove user accountsOn this page:
![]() Authentication and Access Control
| ||||||||
Changed: | ||||||||
< < | Register User | |||||||
> > | List Users | |||||||
Changed: | ||||||||
< < | You don't have to have user home pages in TWiki for Authentication to work - see TWikiUserAuthentication for details. | |||||||
> > |
| |||||||
Added: | ||||||||
> > |
| |||||||
Added: | ||||||||
> > | Register UsersYou don't have to have user profile pages in TWiki for Authentication to work - see TWikiUserAuthentication for details. | |||||||
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
Changed: | ||||||||
< < | Change, Reset and Install Passwords | |||||||
> > | For administrators only: | |||||||
Added: | ||||||||
> > |
Query and Edit User Account Data (Passwords, E-mails) | |||||||
Note that the below features are only relevant when you use an internal password manager where TWiki can set and reset passwords.
| ||||||||
Deleted: | ||||||||
< < |
| |||||||
| ||||||||
Added: | ||||||||
> > | For administrators only:
| |||||||
Changing User Account NamesTo change the user's WikiName: | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Removing User AccountsTo remove a user account (FredQuimby, who logs in as "fred"):
Customizing registration Emails.TWiki's Registration can send 3 emails who's output is governed by templates:
templates dir, this cannot use Template topics.
These template files have a specific format that matches the raw format of emails sent via SMTP, so be careful and test your changes. It is easiest to start by copying the default templates:
cd twiki/templates cp registernotify.tmpl registernotify.myskin.tmpl cp registerconfirm.tmpl registerconfirm.myskin.tmpl cp registernotifyadmin.tmpl registernotifyadmin.myskin.tmplthen add myskin to the beginning of the SKIN setting in TWikiPreferences.
From this point on, your myskin templates will be used for the registration emails.
To make it possible for TWikiUsers to modify the email contents, you could use a parameterized %INCLUDE% statement in your customized version. e.g.:
From: %WIKIWEBMASTERNAME% <%WIKIWEBMASTER%> To: %FIRSTLASTNAME% <%EMAILADDRESS%> Subject: %MAKETEXT{"[_1] - Registration for [_2] ([_3])" args="%WIKITOOLNAME%, %WIKINAME%, %EMAILADDRESS%"}% MIME-Version: 1.0 Content-Type: text/plain; charset=%CHARSET% Content-Transfer-Encoding: 8bit %INCLUDE{ "Main.RegistrationNotification" WIKINAME="%WIKINAME%" FIRSTLASTNAME="%FIRSTLASTNAME%" EMAILADDRESS="%EMAILADDRESS%" }%Note: The use of %WIKINAME%, %FIRSTLASTNAME%, %EMAILADDRESS% passed in from the INCLUDE so that the topic below is similar to the original template. And then create a topic Main.RegisterNotifyEmail: Welcome to %WIKITOOLNAME%. %MAKETEXT{"Your personal [_1] topic is located at [_2]. You can customize it as you like:" args="%WIKITOOLNAME%, %SCRIPTURL{"view"}%/%USERSWEB%/%WIKINAME%"}% * %MAKETEXT{"Some people turn it into a personal portal with favorite links, what they work on, what help they'd like, etc."}% * %MAKETEXT{"Some add schedule information and vacation notice."}% Regards %WIKIWEBMASTERNAME% Your TWiki Admin %MAKETEXT{"Note:"}% 2 %MAKETEXT{"You can change your password at via [_1]" args="%SCRIPTURL{"view"}%/%SYSTEMWEB%/ChangePassword"}% 3 %MAKETEXT{"If you haven't set a password yet or you want to reset it, go to: [_1]" args="%SCRIPTURL{"view"}%/%SYSTEMWEB%/ResetPassword"}% %MAKETEXT{"Submitted content:"}% %FORMDATA% | ||||||||
Deleted: | ||||||||
< < |
| |||||||
Note: Remember to secure the topic appropriately to prevent attackers from getting emailed sensitive passwords. | ||||||||
Changed: | ||||||||
< < | Related Topics: AdminDocumentationCategory | |||||||
> > | Related topics: UserToolsCategory, AdminToolsCategory | |||||||
Added: | ||||||||
> > |
| |||||||