|
@@ -2,6 +2,10 @@
|
|
|
Images = new Mongo.Collection("images");
|
|
|
|
|
|
if (Meteor.isClient) {
|
|
|
+ Accounts.ui.config({
|
|
|
+ passwordSignupFields: "USERNAME_AND_EMAIL"
|
|
|
+ });
|
|
|
+
|
|
|
Template.images.helpers({
|
|
|
images: Images.find({}, { sort: { createdOn: -1, rating: -1 }}),
|
|
|
image_id: function () {
|
|
@@ -12,7 +16,7 @@ if (Meteor.isClient) {
|
|
|
Template.body.helpers({
|
|
|
username: function () {
|
|
|
let user = Meteor.user();
|
|
|
- let name = user ? user.emails[0].address : "anon";
|
|
|
+ let name = user ? user.username : "anon";
|
|
|
return name;
|
|
|
}
|
|
|
});
|
|
@@ -60,7 +64,4 @@ if (Meteor.isClient) {
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|