Explorar el Código

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

Frederic G. MARAND hace 8 años
padre
commit
c198cee6ff
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  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'));