Q: 关于昵称 || Q: About nickname #2099
-
Describe the bug | 问题描述我准备在中间件中查询昵称一样但是邮箱不一样的来实现用户名去重,这有办法做到吗? Website URL | 问题网站https://waline.felixesintot.top Where your waline deploy? | 服务部署在哪里?Vercel (Default) Where your comment data store? | 数据存储在哪里?LeanCloud(https://leancloud.app) Describe the bug | Problem descriptionI plan to query in the middleware those whose nicknames are the same but the email addresses are different to achieve deduplication of user names. Is there a way to do this? Website URL | Problem websitehttps://waline.felixesintot.top Where your waline deploy? | Where is the service deployed?Vercel (Default) Where your comment data store? | Where is the data stored?LeanCloud(https://leancloud.app) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
是可以做的,根据查询条件 It can be done. According to the query conditions |
Beta Was this translation helpful? Give feedback.
是可以做的,根据查询条件
.where({nick: 'aaa', mail: ['!=', 'bbb']})
查询出来是否有用户即可做对应的逻辑。It can be done. According to the query conditions
.where({nick: 'aaa', mail: ['!=', 'bbb']})
, you can query whether there are users and then do the corresponding logic.