Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mu-semtech/ember-mu-registration
- Owner: mu-semtech
- License: mit
- Created: 2016-02-06T16:12:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T09:10:51.000Z (4 months ago)
- Last Synced: 2024-11-16T17:41:16.483Z (about 1 month ago)
- Topics: ember-addon, emberjs, mu-frontend, musemtech, user-registration
- Language: JavaScript
- Size: 272 KB
- Stars: 1
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
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 fieldsFor mu-unregister
- call the `unregister` actionFor 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.