diff options
| author | Sam Varshavchik | 2015-06-09 21:23:27 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2015-06-09 21:23:27 -0400 |
| commit | 6d99e5e7a7e4101786f32e4f6e2dabbe741f5342 (patch) | |
| tree | 7ac8639939a93bc04a8c98c012f8dbaf28fdbf9f /sqwebmail/auth.c | |
| parent | ac0f2369f1fcdabca201a562781de6d5c10c7dff (diff) | |
| download | courier-libs-6d99e5e7a7e4101786f32e4f6e2dabbe741f5342.tar.bz2 | |
added AUTH_MKHOMEDIR_SKEL setting.
Diffstat (limited to 'sqwebmail/auth.c')
| -rw-r--r-- | sqwebmail/auth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sqwebmail/auth.c b/sqwebmail/auth.c index 3030e77..7294d7f 100644 --- a/sqwebmail/auth.c +++ b/sqwebmail/auth.c @@ -1,5 +1,5 @@ /* -** Copyright 1998 - 2006 Double Precision, Inc. See COPYING for +** Copyright 1998 - 2015 Double Precision, Inc. See COPYING for ** distribution information. */ @@ -102,7 +102,7 @@ static int doauthlogin(struct authinfo *a, void *vp) if (p && atoi(p)) return -1; - if ((rc = auth_callback_default(a)) != 0) + if ((rc = auth_callback_default_autocreate(a)) != 0) { if (rc > 0) perror("ERR: authentication error"); @@ -223,7 +223,7 @@ const char *login_returnaddr() { static char *addrbuf=0; const char *p, *domain=""; - + if ((p=getenv("AUTHENTICATED")) == NULL || *p == 0) p=getenv("AUTHADDR"); if (!p) p=""; @@ -323,4 +323,3 @@ static char *uhdrbuf=0; return (hdrbuf); } - |
