Explorar o código

[Doveceot] Fix forced PW update

andryyy %!s(int64=4) %!d(string=hai) anos
pai
achega
38aee89a67
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      data/Dockerfiles/dovecot/docker-entrypoint.sh

+ 1 - 0
data/Dockerfiles/dovecot/docker-entrypoint.sh

@@ -150,6 +150,7 @@ function auth_password_verify(req, pass)
     WHERE username = '%s'
       AND active = '1'
       AND domain IN (SELECT domain FROM domain WHERE domain='%s' AND active='1')
+      AND IFNULL(JSON_UNQUOTE(JSON_VALUE(mailbox.attributes, '$.force_pw_update')), 0) != '1'
       AND IFNULL(JSON_UNQUOTE(JSON_VALUE(attributes, '$.%s_access')), 1) = '1']], con:escape(req.user), con:escape(req.domain), con:escape(req.service)))
   local row = cur:fetch ({}, "a")
   while row do