|
@@ -2,8 +2,7 @@
|
|
|
#
|
|
|
# <doc/wiki/AuthDatabase.CheckPassword.txt>
|
|
|
|
|
|
-<% if @auth['checkpassword'].kind_of?(Hash) and @auth['checkpassword'].length > 0 and
|
|
|
- @auth['checkpassword']['passdb'].kind_of?(Hash) -%>
|
|
|
+<% if Dovecot::Auth.has_passdb?(@auth['checkpassword']) -%>
|
|
|
<%= Dovecot::Conf.authdb('passdb', @auth['checkpassword']['passdb']) %>
|
|
|
<% else -%>
|
|
|
passdb {
|
|
@@ -12,8 +11,7 @@ passdb {
|
|
|
}
|
|
|
<% end -%>
|
|
|
|
|
|
-<% if @auth['checkpassword'].kind_of?(Hash) and @auth['checkpassword'].length > 0 and
|
|
|
- @auth['checkpassword']['userdb'].kind_of?(Hash) -%>
|
|
|
+<% if Dovecot::Auth.has_userdb?(@auth['checkpassword']) -%>
|
|
|
<%= Dovecot::Conf.authdb('userdb', @auth['checkpassword']['userdb']) %>
|
|
|
<% else -%>
|
|
|
# passdb lookup should return also userdb info
|