ember-authenticate-me

The default blueprint for ember-cli addons.

no longer supported
Last updated 5 years ago by samsinite .
MIT · Original npm · Tarball · package.json
$ cnpm install ember-authenticate-me 
SYNC missed versions from official npm registry.

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.11.0 or greater and ember-cli-htmlbars 1.1.1 or greater)

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

  • ember install ember-authenticate-me

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

Current Tags

  • 0.5.0                                ...           latest (4 years ago)

22 Versions

  • 0.5.0 [deprecated]           ...           4 years ago
  • 0.4.0 [deprecated]           ...           4 years ago
  • 0.2.0 [deprecated]           ...           5 years ago
  • 0.1.0 [deprecated]           ...           5 years ago
  • 0.0.19 [deprecated]           ...           5 years ago
  • 0.0.18 [deprecated]           ...           5 years ago
  • 0.0.17 [deprecated]           ...           5 years ago
  • 0.0.16 [deprecated]           ...           5 years ago
  • 0.0.15 [deprecated]           ...           5 years ago
  • 0.0.13 [deprecated]           ...           6 years ago
  • 0.0.12 [deprecated]           ...           6 years ago
  • 0.0.11 [deprecated]           ...           6 years ago
  • 0.0.10 [deprecated]           ...           6 years ago
  • 0.0.9 [deprecated]           ...           6 years ago
  • 0.0.8 [deprecated]           ...           6 years ago
  • 0.0.7 [deprecated]           ...           6 years ago
  • 0.0.6 [deprecated]           ...           6 years ago
  • 0.0.5 [deprecated]           ...           6 years ago
  • 0.0.4 [deprecated]           ...           6 years ago
  • 0.0.3 [deprecated]           ...           6 years ago
  • 0.0.2 [deprecated]           ...           6 years ago
  • 0.0.1 [deprecated]           ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |