Fixing some small registration and login isues
This commit is contained in:
parent
5aa2feff7b
commit
9ed5089508
8 changed files with 66 additions and 44 deletions
|
|
@ -1,3 +1,11 @@
|
|||
<template name="home">
|
||||
<h1>This is Home.</h1>
|
||||
{{#if currentUser}}
|
||||
<h1>This is Home.</h1>
|
||||
{{else}}
|
||||
{{#if $eq loginOrReg 'login'}}
|
||||
{{> login}}
|
||||
{{else}}
|
||||
{{> reg}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</template>
|
||||
|
|
@ -1,5 +1,11 @@
|
|||
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
|
||||
|
||||
Template.home.helpers({
|
||||
loginOrReg: function() {
|
||||
return Session.get("loginOrReg");
|
||||
},
|
||||
});
|
||||
|
||||
Template.home.events({
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue