Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cuba-platform/sample-user-registration

Example of users self-registration
https://github.com/cuba-platform/sample-user-registration

cuba-sample

Last synced: about 1 month ago
JSON representation

Example of users self-registration

Awesome Lists containing this project

README

        

# User Registration

This is a simple example of using anonymous access to an application, i.e. taking some actions before login. Users can click the *Register* link on the login screen and register in the application with a new login name and password.

* [ExtLoginScreen](https://github.com/cuba-platform/sample-user-registration/blob/master/modules/web/src/com/company/sample/web/screens/loginscreen/ExtLoginScreen.java) is an extension of the standard login screen. It adds the *Register* link and can receive new user credentials back from the register screen to set them to the fields.

* [RegisterScreen](https://github.com/cuba-platform/sample-user-registration/blob/master/modules/web/src/com/company/sample/web/screens/register/RegisterScreen.java) accepts new user credentials and creates a new user in the database with the specified group and role.

* [RestorePasswordScreen](https://github.com/cuba-platform/sample-user-registration/blob/master/modules/web/src/com/company/sample/web/screens/restorepassword/RestorePasswordScreen.java) generates a new password for an existing user and sends e-mail message with the generated password.

* [RegistrationService](https://github.com/cuba-platform/sample-user-registration/blob/master/modules/global/src/com/company/sample/service/RegistrationService.java) is a simple service that provides user registration functionality. It can be created manually or simply using Studio (see how to [create](https://doc.cuba-platform.com/manual-7.1/service_creation.html) and [using](https://doc.cuba-platform.com/manual-7.1/service_import.html) services).

* [app.properties](https://github.com/cuba-platform/sample-user-registration/blob/master/modules/core/src/com/company/sample/app.properties) sets location of e-mail templates for password reset.

Based on CUBA Platform 7.2

## Issues
Please use https://www.cuba-platform.com/discuss for discussion, support, and reporting problems coressponding to this sample.