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

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -

SQL Server - MyCTE query based on 24 hour period (next day) -