Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mu-semtech/ember-mu-registration

Default ember component for registration-service
https://github.com/mu-semtech/ember-mu-registration

ember-addon emberjs mu-frontend musemtech user-registration

Last synced: about 1 month ago
JSON representation

Default ember component for registration-service

Awesome Lists containing this project

README

        

# Ember-mu-registration

This addon provides a ``, `` and `` component for the [mu-registration microservice](https://github.com/mu-semtech/registration-service).

## Installation
```
ember install ember-mu-registration
```

## Basic usage
Just include the ``, `` or `` component in your template.

## Advanced usage

### Overwriting the component templates
To overwrite the template of the components, create a custom `mu-register.hbs`, `mu-unregister.hbs` or `mu-change-password.hbs` file. Make sure you use the correct bindings and actions. You can have a look at the default templates in `addon/templates/components`.

For mu-register
- call the `register` action
- use `name`, `nickname`, `password` and `passwordConfirmation` as value bindings for the input fields

For mu-unregister
- call the `unregister` action

For mu-change-password
- call the `changePassword` action
- use `oldPassword`, `newPassword` and `newPasswordConfirmation` as value bindings for the input fields

### Customizing the components
To customize the components, generate your own new components and include the mu-register (`ember-mu-registration/mixins/mu-register`), mu-unregister (`ember-mu-registration/mixins/mu-unregister`) and mu-change-password (`ember-mu-registration/mixins/mu-change-password`) mixins to handle the `register`, `unregister` and `changePassword` actions.