From 6d99e5e7a7e4101786f32e4f6e2dabbe741f5342 Mon Sep 17 00:00:00 2001 From: Sam Varshavchik Date: Tue, 9 Jun 2015 21:23:27 -0400 Subject: added AUTH_MKHOMEDIR_SKEL setting. --- sqwebmail/auth.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sqwebmail/auth.c') 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); } - -- cgit v1.2.3