mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Don't try to login with IMAP and courier when user or password is empty
This commit is contained in:
parent
e4af425893
commit
9a49be1e10
2 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,8 @@ IMAP_USE_SSL = config.get("auth", "imap_ssl")
|
|||
|
||||
def is_authenticated(user, password):
|
||||
"""Check if ``user``/``password`` couple is valid."""
|
||||
if not user or not password:
|
||||
return False
|
||||
|
||||
log.LOGGER.debug(
|
||||
"Connecting to IMAP server %s:%s." % (IMAP_SERVER, IMAP_SERVER_PORT,))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue