Error: Username already exists [403] Meteor -


i have manually created user on meteor app accounts.createuser , have disabled sign ups user. worked until restarted server , started getting error:

error: username exists. [403]

i have accounts.createuser under if (meteor.isserver), suspect created user may issue. thoughts?

you're running accounts.createuser every time run app.

try doing this, create user if there none in collection.

if(meteor.isserver) {     if(!meteor.users.findone()) {          accounts.createuser(....)      } } 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -