Comments (5)
Found it, required this on the server:
// Validate username, without a specific error message.
Accounts.validateNewUser(function (user) {
return user.username !== "root";
});
from accounts-ui.
Is that something you had in your app before? I haven't seen this before being required.
Btw, how is the package working out for you so far?
from accounts-ui.
I'm having this issue as well. Any possible solutions, because that didn't work for me.
from accounts-ui.
@felixb101 thanks for the solution. It didn't work for me though - I'm getting this error:
W20160721-19:18:48.177(-4)? (STDERR) /Users/air/.meteor/packages/meteor-tool/.1.3.5_1.1qd5g0m++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20160721-19:18:48.178(-4)? (STDERR) throw(ex);
W20160721-19:18:48.179(-4)? (STDERR) ^
W20160721-19:18:48.398(-4)? (STDERR) Error: Can't set `forbidClientAccountCreation` more than once
W20160721-19:18:48.399(-4)? (STDERR) at packages/accounts-base/accounts_common.js:139:17
W20160721-19:18:48.400(-4)? (STDERR) at Function._.each._.forEach (packages/underscore/underscore.js:108:1)
W20160721-19:18:48.400(-4)? (STDERR) at AccountsServer.config (packages/accounts-base/accounts_common.js:136:7)
W20160721-19:18:48.400(-4)? (STDERR) at AccountsServer.Ap.config (packages/accounts-base/accounts_server.js:1121:53)
W20160721-19:18:48.401(-4)? (STDERR) at meteorInstall.imports.startup.server.js (imports/startup/server.js:4:10)
W20160721-19:18:48.401(-4)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
W20160721-19:18:48.402(-4)? (STDERR) at Module.require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1)
W20160721-19:18:48.402(-4)? (STDERR) at Module.Mp.import (/Users/air/.meteor/packages/modules/.0.6.5.118suml++os+web.browser+web.cordova/npm/node_modules/reify/lib/runtime.js:70:16)
W20160721-19:18:48.402(-4)? (STDERR) at meteorInstall.server.main.js (server/main.js:1:8)
W20160721-19:18:48.403(-4)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1)
It looks like the forbidClientAccountCreation
option isn't able to overwrite. Did you run into this issue?
from accounts-ui.
@felixb101 never mind! I had another accounts package useraccounts:core
installed that probably had that option being set too. Fixed now. Can't believe I spent that long on this one haha.
from accounts-ui.
Related Issues (20)
- App crashes after adding accounts-ui (forget to call 'Npm.depends') HOT 1
- Login with Facebook - 'Something went wrong' HOT 1
- How to change label
- Accounts.ui.LoginForm without createContainer HOT 4
- Support for React Router v4? HOT 9
- referencing this when it is already the window object in SignUp HOT 1
- Uncaught Error: _registerComponent(...): Target container is not a DOM element. HOT 1
- Sign out? HOT 4
- TypeError: onSubmitHook is not a function HOT 2
- Not seeing any error messages on failed login
- Typo breaking requestPermissions in Accounts.ui.config (1.2.23) HOT 1
- withTracker instead of createContainer on LoginForm.jsx (React16.0 support) HOT 5
- Does this actually work at all with react-router 4? HOT 5
- the constant has a wrong name HOT 1
- Call to `withTracker` is incorrect HOT 2
- Component not rendered & Error with Meteor 1.6 HOT 22
- Replace all UI dependencies with custom field components HOT 1
- Extra fields is not work
- Still maintained? HOT 4
- Conflict issue with [email protected] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accounts-ui.