DotNetNuke:为什么不“记住我”像我期望的那样工作?

发布于 2024-10-19 10:42:50 字数 371 浏览 1 评论 0原文

运行最新版本的 DotNetNuke 5.6.1 版,无法找到为什么 DotNetNuke 站点上无法记住用户名和密码的好答案。 这个帖子继续讨论cookie,但确实没有抓住重点。用户“ptleitch”在提问时说得最好:

“好吧,这一切都很好。你每天都会学到新东西。问题是,我的用户按照他们期望的“记住登录”功能提交问题自动填充登录控件中的“用户名”字段,除了他们运气不好之外,我没有什么可告诉他们的。”

Running the latest version of DotNetNuke, version 5.6.1 and cannot find a good answer to why Username and Password cannot be remembered on a DotNetNuke site. This thread goes on about cookies but really misses the point. User 'ptleitch' puts it best when he askes:

"Well thats all fine and dandy. You learn something new everyday. The problem is, my users are submitting issues along the lines of they expect the "remember login" feature to auto-populate the "username" field in the login control, and I've got nothing to tell them other than they're out of luck."

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

祁梦 2024-10-26 10:42:50

首先,要启用该功能,正如 orka 所说,您需要将 web.config 中的 PersistentCookieTimeout 设置为大于 0 的值(值以分钟为单位)。

除此之外,我建议更改登录屏幕上向用户显示的措辞,使其更加准确。 “记住登录”确实让人觉得它只是自动填充您的凭据 - 从功能角度来看,这并没有真正的意义。

因此,我建议将“记住登录”更改为“保持登录状态”。

您可以通过 DNN 用户界面访问(并更新)措辞,方法是浏览至“管理”->“语言 -> (编辑英文静态资源为站点链接)->本地资源 ->桌面模块 ->管理员->认证-> App_LocalResources->登录.ascx。

有点离题 - 我建议你也应该将所有内容从“登录”更改为“登录”(例如用户登录、保持登录等) - 只是因为它使得更有意义。

First, to enable the functionality, as orka said, you'll want to set the PersistentCookieTimeout in the web.config to something greater than 0 (value is in minutes).

In addition to that though, I'd suggest altering the verbiage presented to the user on the login screen to be more accurate. "Remember Login" does make it seem like it's just going to auto-populate your credentials - which, functionality-wise, doesn't really make sense.

So, I'd recommend changing "Remember Login" to "Stay signed in."

You access (and update) the verbiage through the DNN user interface by browsing to Admin -> Languages -> (edit English static resources for site link) -> Local Resources -> DesktopModules -> Admin -> Authentication -> App_LocalResources -> Login.ascx.

On a little bit of a tangent - I'd go as far as to suggest that you should change everything from "Login" to "Sign in" as well (e.g. User Sign In, Stay signed in, etc) - just because it makes more sense.

过去的过去 2024-10-26 10:42:50

简短回答长故事 在 web.config 文件的 appSettings 部分使用 PersistentCookieTimeout 参数。参数值以分钟为单位,应设置为大于 0(两周为 20160)才能正常运行 RememberMe 功能。

The short answer of long story is using PersistentCookieTimeout parameter at the appSettings section of web.config file. The parameter value is in minutes and should be set bigger than 0 (20160 for two weeks) to work RememberMe functionality properly.

沙与沫 2024-10-26 10:42:50

我想补充一点,许多网站只记住用户名。它们会自动填充用户名,并且用户必须输入密码。这是许多用户所期望的功能。我不知道有什么方法可以用 DNN 来做到这一点。如上所述,“记住我”功能实际上是“保持登录”功能。

I would add that many websites remember the username only. They autopopulate the username, and the user must enter the password. This is the functionality that many users expect. I don't know of a way to do it with DNN. As mentioned above, the "Remember Me" function is really "Stay Signed In" functionality.

染墨丶若流云 2024-10-26 10:42:50

这里的答案很好,我同意它应该是“保持登录状态”。沿着这些思路的一个提示:对于我的 DNN 7+ 安装,我在此处找到了语言覆盖:

Admin ->语言 -> (编辑英文静态资源为站点链接)->本地资源 ->桌面模块 -> 身份验证服务 -> DNN-> App_LocalResources-> Login.ascx

这是因为我使用标准身份验证服务(DNN)。如果您使用其他身份验证提供程序,您可能会在与 DNN 文件夹同一级别的不同文件夹中找到要覆盖生命的文本。

Great answers here and I agree it should read "Stay signed in". One tip along these lines: For my DNN 7+ installs, I found the Language override here:

Admin -> Languages -> (edit English static resources for site link) -> Local Resources -> DesktopModules -> AuthenticationServices -> DNN -> App_LocalResources -> Login.ascx

This is because I use the standard authentication services (DNN). If you utilize other authentication providers, you may find the text to override lives in a different folder at the same level as the DNN folder.

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