txs/meteor-wecare-accounts-entry-flow-blaze-global


Account Entry with FlowRouter and BlazeLayout in a global way

License: MIT

Language: CoffeeScript


This is a account Entry that works with FlowRouter 2.0 and Blaze layout. A fix to use Blaze layout instead of flow layout. Do the Blaze layout in a global way. .

Getting started

Install:

meteor add wecare:accounts-entry-flow-blaze-global

See the original package for more details on usage and examples. The differences are described here:

Ensuring signed in users for routes

Use the helper function AccountsEntrySignInRequired in an entry trigger for any route that requires users to be signed in. This will redirect the user to the included sign-in page and stop any rendering. Accounts-entry also tracks where the user was trying to go and will route them back after sign in.

Here is a route example:

FlowRouter.route('/dashboard', {
        name: 'dashboard',
        triggersEnter: [
            AccountsEntrySignInRequired
        ],
        action: function(params) {
            FlowLayout.render('dashboard');
        }
    }
);

You can also apply this to every route at once (making sure to exclude the logged out route):

FlowRouter.triggers.enter([AccountsEntrySignInRequired], {except: ['loggedOut']});

If you want to change the render you can always use the triggers in FlowRouter:

FlowRouter.triggers.enter([trackRouteEntry], {only: ["entrySignIn"]});

Project Statistics

Sourcerank 4
Repository Size 330 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 52
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Josh Owens Ry Walker François-Xavier Thoorens Stefan Undorf Mike Cunneen Ben M Greene Bart dovrosenberg John Musgrave Aleš Vaupotič Colin Flynn Dave Koo Gerard Sychay txs Pahan Sarathchandra Rishi Goomar Tim Brandin gaborpop Noam Youngerman Bernhard Millauer

Packages Referencing this Repo

wecare:accounts-entry-flow-blaze-global
Make signin and signout their own pages with routes.
Latest release 1.0.4 - Published

Something wrong with this page? Make a suggestion

Last synced: 2017-02-12 04:21:02 UTC

Login to resync this repository