forked from disney/meteor-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add accounts-password and bcrypt (native) Add feature to call Accounts#createUser on click
- Loading branch information
1 parent
cbbdeba
commit 27649d9
Showing
13 changed files
with
724 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
import { Template } from 'meteor/templating'; | ||
import { ReactiveVar } from 'meteor/reactive-var'; | ||
import {Meteor} from 'meteor/meteor'; | ||
import {Accounts} from 'meteor/accounts-base'; | ||
import {Template} from 'meteor/templating'; | ||
|
||
import './main.html'; | ||
|
||
Template.hello.onCreated(function helloOnCreated() { | ||
// counter starts at 0 | ||
this.counter = new ReactiveVar(0); | ||
}); | ||
|
||
Template.hello.helpers({ | ||
counter() { | ||
return Template.instance().counter.get(); | ||
}, | ||
Accounts.ui.config({ | ||
passwordSignupFields: 'USERNAME_ONLY', | ||
}); | ||
|
||
Template.hello.events({ | ||
'click button'(event, instance) { | ||
// increment the counter when button is clicked | ||
instance.counter.set(instance.counter.get() + 1); | ||
'click button'() { | ||
Meteor.call('recreateUser', function () { | ||
console.log(arguments); | ||
}); | ||
}, | ||
}); |
Oops, something went wrong.