Fix failing principal creation for new users using IMAP PAM

auth. Date format was not specified. Returned boolean TRUE
 instead of an actual date in the query.
This commit is contained in:
Daniel Aleksandersen 2012-04-08 21:59:55 +02:00 committed by Andrew McMillan
parent ecbc9f6a4d
commit 0d6d43560a

View File

@ -97,7 +97,7 @@ function IMAP_PAM_check($username, $password ){
'username' => $username,
'user_active' => true,
'email' => $username . "@" . $c->authenticate_hook['config']['email_base'],
'modified' => date(),
'modified' => date('c'),
'fullname' => $fullname
));
if ( ! $principal->Exists() ) {