Schema = {};

Schema.UserProfile = new SimpleSchema({
  name: {
    type: String,
    optional: true
  },
  body: orion.attribute('summernote', {
    label: 'Body',
    optional: true,
    autoform: {
      summernoteOptions: {
        toolbar: [
          ['style', ['bold', 'italic', 'underline', 'clear']],
          ['para', ['ul', 'ol', 'paragraph']],
          ['insert', ['link']]
        ]
      }
    }
  })
});

Schema.User = new SimpleSchema({
  profile: {
    type: Schema.UserProfile,
    optional: true
  },
  // TODO Allow user to change email address in a secure, verifiable way
  // emails: {
  //   type: [Object],
  //   // this must be optional if you also use other login services like facebook,
  //   // but if you use only accounts-password, then it can be required
  //   optional: true
  // },
  // "emails.$.address": {
  //   type: String,
  //   regEx: SimpleSchema.RegEx.Email
  // },
  // "emails.$.verified": {
  //   type: Boolean,
  //   blackbox: true,
  //   autoform: {
  //     omit: true
  //   }
  // },
  services: {
    type: Object,
    optional: true,
    blackbox: true,
    autoform: {
      omit: true
    }
  }
});

Meteor.users.attachSchema(Schema.User);

Schema = {};

Schema.UserProfile = new SimpleSchema({
  name: {
    type: String,
    optional: true
  },
  body: orion.attribute('summernote', {
    label: 'Body',
    optional: true,
    autoform: {
      summernoteOptions: {
        toolbar: [
          ['style', ['bold', 'italic', 'underline', 'clear']],
          ['para', ['ul', 'ol', 'paragraph']],
          ['insert', ['link']]
        ]
      }
    }
  })
});

Schema.User = new SimpleSchema({
  profile: {
    type: Schema.UserProfile,
    optional: true
  }
  // TODO Allow user to change email address in a secure, verifiable way
  //,
  // emails: {
  //   type: [Object],
  //   // this must be optional if you also use other login services like facebook,
  //   // but if you use only accounts-password, then it can be required
  //   optional: true
  // },
  // "emails.$.address": {
  //   type: String,
  //   regEx: SimpleSchema.RegEx.Email
  // },
  // "emails.$.verified": {
  //   type: Boolean,
  //   autoform: {
  //     omit: true
  //   }
  // }
});

Meteor.users.attachSchema(Schema.User);

--- 
+++ 
@@ -24,9 +24,8 @@
   profile: {
     type: Schema.UserProfile,
     optional: true
-  }
+  },
   // TODO Allow user to change email address in a secure, verifiable way
-  //,
   // emails: {
   //   type: [Object],
   //   // this must be optional if you also use other login services like facebook,
@@ -39,10 +38,19 @@
   // },
   // "emails.$.verified": {
   //   type: Boolean,
+  //   blackbox: true,
   //   autoform: {
   //     omit: true
   //   }
-  // }
+  // },
+  services: {
+    type: Object,
+    optional: true,
+    blackbox: true,
+    autoform: {
+      omit: true
+    }
+  }
 });
 
 Meteor.users.attachSchema(Schema.User);
Add services to user schema

Login was failing without it.

We still blackbox and omit them from forms.

re #1
