Browse Source

[Doveceot] Fix forced PW update

andryyy 4 years ago
parent
commit
38aee89a67
1 changed files with 1 additions and 0 deletions
  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