119 | | After discussion with experience team following changes will be included inside the implementation |
120 | | * Instead of email, users will log in with user name. This field will appear inside registration, edit profile(not editable) and detail view sections. However the email remains as required field. |
121 | | * The url for users detail view will appear in the following format [Domain name]/users/[User name]/ |
122 | | * Рespectively the group name became [Domain name]/users/[Group name]/ |
123 | | * Note that the group name will be unique for all groups as well |
| 119 | The configurable things for the server from this task are: the smtp hostname, the smtp port, the email and pass from which to send support mails and a flag showing that there is no email conformation needed for the registration functionality. [[BR]] |
| 120 | |
| 121 | The RegistrationFormBean is a bean used to transfer information from the servlet to the jspx pages. It has user-name, email, password, screenName, description and avatar ref. [[BR]] |
| 122 | |
| 123 | The implementation is done according to the design at the [browser:branches/private/mira/security] with some exceptions: |
| 124 | * The password will not be saved in plain text. The thing that will be saved is the md5 code of the provided password. When a user forgets his/her password a new one will be generated and send via e-mail. |
| 125 | * After discussion with experience team following changes will be included inside the implementation |
| 126 | * Instead of email, users will log in with user name. This field will appear inside registration, edit profile(not editable) and detail view sections. However the email remains as required field. |
| 127 | * The url for users detail view will appear in the following format [Domain name]/users/[User name]/ |
| 128 | * Рespectively the group name became [Domain name]/users/[Group name]/ |
| 129 | * Note that the group name will be unique for all groups as well |
| 130 | |
| 131 | I had some problems sending mails using the java mail api. One of the things I found important is to set the properties "mail.smtp.auth" and "mail.smtp.starttls.enable" to true. Then I had to create an Authenticator that simply returned a PasswordAuthenticator with the correct username and password for the supprot email. |