Thursday, September 19, 2013

How to manage users (register a new user, restore a password, etc.) from the logon form

The excellent E4037 example from DevExpress Code Central is integrated with our community project (eXpandFramwork) in version 13.1.7.1.

Installation

This functionality is embedded in the XpandSecurityWinModule/XpandSecurityWebModule depending on the platform you use. All eXpand modules are in the toolbox for fast Drag & Drop installation.

image

Configuration

The configuration for this feature as excepted can be found in the XAF Application Model options node under the Registration sub node as illustrated below.

image

Attribute Enabled : Setting it to true two extra action Register and ForgotPassword will be activated in the Logon form as shown

image

image

UserModelClass: Here we can configure the type of user that will be created

EmailMember: This is a lookup of all members of UserModelClass and is only to save the email. 

RoleModelClass && RoleCriteria: Using those two attributes we can configure which roles will be assigned to the new registered user.

Hope you find it useful and you have a lot of feedback for it in eXpand forums.

p.s. : This implementation does not send registration or pass forgotten emails. I will release a new EmailModule following the workflow presented in Declarative data auditing. Do not forget that we are talking about highly extensible modules as all XAF modules are so, In the meantime it is really easy to write a controller and send the mail you like.

Forgot to mention that there is also Password Score model member attribute you can use to validate the new password against common limits like Very Weak, Weak, Strong etc. Finally it should be possible to mix and match registration and Anonymous authentication for XAF aps.net applications

Happy XAF’ing to all!

Subscribe to XAF feed
Subscribe to community feed

Subscribe to XAF feed
Subscribe to community feed

DiggIt!

0 comments:

Post a Comment