同一小程序的不同用户如何使用相同的账号密码来登陆小程序?

灏忕▼搴� 文章 2021-12-06 15:00 23 0 全屏看文

同一小程序的不同用户如何使用相同的账号密码来登陆小程序?How can different users of the same Mini Program use the same account and password to log in to the Mini Program?

同一小程序的不同用户如何使用相同的账号密码来登陆小程序?

云数据库有个集合如user, 存放username和password, a用户通过页面表单注册了username=123,pwd=456的账号登陆了小程序,B用户怎样可以用同样的账号密码来登陆同一个小程序,查看a用户的相关数据?实现账号共享?目前的情况是,集合user有一条username=123,pwd=456,openid=a的记录和一条username=123,pwd=456,openid=b的第二条记录。怎样处理成一个公共账号?

The cloud database has a collection such as user, which stores username and password. User a logs in to the applet with an account with username = 123 and PWD = 456 through the page form. How can user B log in to the same applet with the same account and password to view the relevant data of user a? Account sharing? The current situation is that the set user has a record with username = 123, PWD = 456, openid = A and a second record with username = 123, PWD = 456, openid = B. How to handle it as a public account?

鍥炵瓟锛�

困难:

不要根据openid去判断用户,自己设置一套账号密码来识别。

或者openid作为辅助判断,自己写代码设立一个openid白名单,在这个名单里的openid才可以用这套账号密码登录。

中式小面包:

那就不要关联openid囖

Mr.Zhao:

NB啊 登录账号还不唯一

-EOF-