PostgreSQL用户帐户到期

发布于 2025-02-09 01:38:29 字数 53 浏览 1 评论 0原文

我想知道有什么方法可以根据日期禁用用户帐户。 目的是简单地按时间表锁定帐户,而不是过期密码。

I wonder is there any way to disable user account based on date.
The goal is to simply lock the account on timed schedule, not expire password.

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

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

发布评论

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

评论(1

浊酒尽余欢 2025-02-16 01:38:29

您可以存储锁定在用户行中有效的时间,并制作使用数据库的应用程序检查该时间是否过去,并允许/拒绝连接。

You can store the time at which the lock should be effective in the user's row and make the application that uses the database check whether this time is in the past and allow/refuse connection accordingly.

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