gpt4 book ai didi

javascript - 返回&: How to send signup page with different role to two kinds of users

转载 作者:太空宇宙 更新时间:2023-11-04 16:08:59 25 4
gpt4 key购买 nike

我使用back&平台和我有两种用户:

被视为提供者的用户和其他被视为消费者的用户。

安全和身份验证/配置部分中,有公共(public)应用程序受邀用户默认分配的 Angular 色:,因此我可以将 Angular 色附加到一种 Angular 色用户数

但是如何发送具有 provider Angular 色的邀请页面?访问该网站并注册的其他用户是否获得消费者用户 Angular 色?

谢谢

最佳答案

在“安全操作”下,在创建之前添加一个新操作,该操作根据您在注册时发送的参数更新 Angular 色。在操作中代码是:

userInput.Role = 'ReadOnly';

为了向注册发送附加信息,请使用 Backand.signup(...) 中的参数,请在此处查看更多文档:http://docs.backand.com/en/latest/apidocs/security/#saving-additional-parameters-during-sign-up

关于javascript - 返回&: How to send signup page with different role to two kinds of users,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41661047/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com