如何在扑朔迷离的飞溅屏幕中与主屏幕进行比较
假设,我在此应用程序上有两个用户(老师& student)。他们的平台或主屏幕不同,登录和注册部分也不同。现在,我希望登录状态(学生或老师)比较飞溅屏幕,以查看谁具有登录名并将其发送到主屏幕。怎么能这样做?
Suppose, I have two users on this App (Teacher & Student). Their platform or home screen is different and so is the login, and registration section. Now I want the login status (student or teacher) to compare the splash screen to see who has the login and send it to its home screen. How can do this?enter image description here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要为每个用户分配角色,然后根据角色进行路由。
2您可以在其中存储角色信息的地方:
始终从可信赖的环境中设置角色,否则您的用户将能够更改自己的角色。
完成此操作后,您可以从应用程序中访问角色信息并进行基于角色的授权(在您的情况下,路由)
You need to assign a role each user, and then do the routing based on the role.
2 places where you can store the role information:
Always set the role from a trusted environment, otherwise your users will be able to change their own roles.
Once this is done, you can access the role information from your app and do role based authorization (in your case, routing)
您可以进行基于角色的授权。这是一个示例。
You can make role-based authorization. Here is an example.