Proposal:
...
Account activation via email
Status Patch under consideration | Implemented in trunk |
Target Release | 4.0 |
Original Authors | Sedat Çiftçi, Dave Johnson |
Abstract
This is a proposal to support E-mail Account Activation Account activation via email in Roller. If activation is enabled, then user accounts must be activated via e-mail before they can be used.
Requirements
- Support e-mail activation of new user accounts
- E-mail message must be I18N/localizable
- E-mail activation must be optional
Issues
No major issues to be considered.
Design
List and describe new manager methods, Struts actions, JSP pages, macros, etc.
- New runtime properties with these defaults:
- user.account.activation.enabled=true
- user.account.activation.code.length=128
- user.account.activation.code.generation.retry=3false
- user.account.activation.mail.from=activate@localhost
- New persistent POJO UserActivationData
- Code in UserManager implementations to store/retrieve new POJO
- New table: useractivate
{{
create table useractivate (
id varchar(48) not null primary key,
username varchar(255) not null,
activationcode varchar(255) not null
);
}}
...
- field in UserData object and corresponding rolleruser table:
Code Block activationcode varchar(48)
- New method un UserManager to retrieve user via activation code:
Code Block public UserData getUserByActivationCode(String activationCode) throws RollerException;
- Code in UserNewAction.java to generate & store activation code and send email
Comments
Please comment on mailing list.