YAF.net 1.9.4 中的登录验证

发布于 2024-09-14 17:34:27 字数 387 浏览 2 评论 0原文

如何在我当前的项目中使用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 only

Admin role = Admin Folder Access and
yaf forum Admin role only

Teacher 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瞎闹 2024-09-21 17:34:27

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文