Basic use cases for user management
![]() on 5th February, 2010 This is the second tutorial of the user management series. We'll explore the user's point of view, through a series of use cases: log in/log out, change password and password recovery. If you haven't read the previous tutorial, you can find it here. We'll assume that your portofino-custom.properties has the following lines.
model.users.enabled=true
model.users.anonymous.enabled=false model.users.pwd.minlength=6 model.users.pwd.expiry.days=60 model.users.pwd.keep.old.number=2 model.users.pwd.attempts.maxnumber=3 model.users.pwd.inactivity.maxdays=30 mail.smtp.host=smtp.gmail.com mail.smtp.port=465 mail.smtp.login=your_account@gmail.com mail.smtp.password=your_password mail.smtp.ssl.enabled=true mail.sender=your_account@gmail.com And let's see how these setting will affect the system... Logging in and outWith model.users.enabled=true Portofino allows users to log in providing their credentials.
If you type a wrong password you receive the "Error: wrong login / password" message. You can make at most n attempts (where n is specified in the model.users.pwd.attempts.maxnumber parameter), whereupon your account will be suspended and should be reactivated by an administrator.
If you haven't changed your password for more than the number of days specified in model.users.pwd.expiry.days, your password expires and you'll be redirected to the change password page. When you've logged in, you find in the left corner the link to log out and the link to your personal data.
Changing your password To change your current password: |



