PostgreSQL用户帐户到期
我想知道有什么方法可以根据日期禁用用户帐户。 目的是简单地按时间表锁定帐户,而不是过期密码。
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以存储锁定在用户行中有效的时间,并制作使用数据库的应用程序检查该时间是否过去,并允许/拒绝连接。
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.