Browse Source

Step 9.4: Configure accounts-ui to only require username.

Frederic G. MARAND 9 years ago
parent
commit
c198cee6ff
2 changed files with 6 additions and 1 deletions
  1. 1 1
      AccountsUIWrapper.jsx
  2. 5 0
      simple-todos-react.jsx

+ 1 - 1
AccountsUIWrapper.jsx

@@ -9,6 +9,6 @@ AccountsUIWrapper = React.createClass({
   },
   render() {
     // Just render a placeholder container that will be filled in.
-    return <span ref="container" className="AUIW-wrapper" />;
+    return <span ref="container" />;
   }
 });

+ 5 - 0
simple-todos-react.jsx

@@ -2,6 +2,11 @@
 Tasks = new Mongo.Collection('tasks');
 
 if (Meteor.isClient) {
+  // This code is executed on the client only.
+  Accounts.ui.config({
+    passwordSignupFields: "USERNAME_ONLY"
+  });
+
   Meteor.startup(function () {
     // Use this branch to render the component after the page is ready.
     ReactDOM.render(<App />, document.getElementById('render-target'));