This package has been deprecated

Author message:

no longer supported

ember-authenticate-me

0.5.0 • Public • Published

Ember-authenticate-me

This addon hooks Torii up to work out of the box with the Rails gem token-authenticate-me and includes some default templates, routes, and controllers.

Installation (requires ember-cli 2.0 or greater)

In your app's root Ember directory (typically app-ember), run:

  • ember install ember-authenticate-me
  • ember generate user

ember g ember-authenticate-me adds to your app/router.js router map:

this.route('login');
this.route('logout');
this.route('sign-up');
this.route('forgot-password');
 
this.route('reset-password', {
  path: '/reset-password/:token'
});
 
this.route('edit-account', {
  path: '/edit-account/:user_id'
});

Include Default CSS Styling

To include default css styling, add the following to your ember-cli projects Brocfile.js:

 
var app = new EmberApp({
  emberAuthenticateMe: {
      importCSS: true
    },
  ...
]);

Override default login transitions

override the app/controllers/login.js controller to:

import LoginController from 'ember-authenticate-me/controllers/login';

export default LoginController.extend({
  transitionRoute: /* route name here, I.E. 'foo' */

  transitionToLoggedInRoute: function(sessionContent) {
    /*
     * Or to dynamically control the transition
     * implement this function here and manually
     * call `this.transitionToRoute(...);
     */
  }
});

For more information on using ember-cli, visit http://www.ember-cli.com/.


Code Of Conduct

Wildland Open Source Code Of Conduct

Readme

Keywords

Package Sidebar

Install

npm i ember-authenticate-me

Weekly Downloads

22

Version

0.5.0

License

MIT

Last publish

Collaborators

  • jweakley
  • samsinite