How to properly add admin user to a database?

前端 未结 0 883
南方客
南方客 2020-12-05 16:46

Let\'s say I have an endpoint for posting new users with a logic like this:

    ...
    user = new User(_.pick(req.body, [\'name\', \'email\', \'password\', \         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题