YAF.net 1.9.4 中的登录验证
如何在我当前的项目中使用YAF(Yet Another Forum)1.9.4的登录验证?
我问的原因是我将 yaf forum 作为我项目中的子文件夹,除了名为 Students、Teacher 和 Administrator 的文件夹外,我还有其他 3 个文件夹。我想要实现的就是使用具有以下功能的 yaf 登录来验证我的用户:
学生角色 = 学生文件夹访问权限 和 Yaf 论坛 仅限注册角色
管理员角色 = 管理员文件夹访问权限和 仅限 yaf 论坛管理员角色
教师角色 = 教师文件夹访问权限 仅限 yaf 论坛版主
我希望有人可以帮助我实现这种事情。任何意见和建议都将得到高度重视。
How do I use the Log in Authentication of YAF (Yet Another Forum) 1.9.4 in my current project?
The reason why I am asking is that I made yaf forum as my subfolder in my project and I still have 3 other folders other than that named Students, Teacher and Administrator. All I want to achieve is to validate my users using the yaf login having the:
Student role = Student Folder Access
and Yaf forum Registered role onlyAdmin role = Admin Folder Access and
yaf forum Admin role onlyTeacher role = Teacher Folder Access
and yaf forum Moderator only
I hope someone could help me achieve this kind of thing. Any advice and suggestion will be highly sought.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Another Forum.NET 使用 web.config 中定义的标准 ASP.NET 成员资格。在 YAF 管理员角色中,链接您的学生、管理员和教师角色。然后进入这些角色并设置权限以匹配这些角色所需的访问权限。
Yet Another Forum.NET uses standard ASP.NET Membership defined in the web.config. In YAF Admin roles, link your Student, Admin and teacher roles. Then go into those roles and set the permissions to match the desired access for those roles.