mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Fixes for POP3 and TLS (new option)
This commit is contained in:
parent
cf3eb7c310
commit
07eb7fa7b8
@ -3,7 +3,7 @@
|
||||
$config->auth_pop3host = "127.0.0.1";
|
||||
}
|
||||
if (!isset($config->auth_pop3type)) {
|
||||
$config->auth_pop3type = "pop3";
|
||||
$config->auth_pop3type = "pop3notls";
|
||||
}
|
||||
if (!isset($config->auth_pop3port)) {
|
||||
$config->auth_pop3port = "110";
|
||||
@ -23,7 +23,7 @@
|
||||
<TR VALIGN=TOP BGCOLOR="<?php echo $THEME->cellheading2 ?>">
|
||||
<TD ALIGN=RIGHT><P>auth_pop3type:</TD>
|
||||
<TD>
|
||||
<?php $pop3types = array("pop3","pop3cert");
|
||||
<?php $pop3types = array("pop3","pop3cert", "pop3notls");
|
||||
foreach($pop3types as $pop3type) {
|
||||
$pop3options[$pop3type] = $pop3type;
|
||||
}
|
||||
|
@ -9,6 +9,9 @@ function auth_user_login ($username, $password) {
|
||||
|
||||
switch ($CFG->auth_pop3type) {
|
||||
case "pop3":
|
||||
$host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3}INBOX";
|
||||
break;
|
||||
case "pop3notls":
|
||||
$host = "{".$CFG->auth_pop3host.":$CFG->auth_pop3port/pop3/notls}INBOX";
|
||||
break;
|
||||
case "pop3cert":
|
||||
|
Loading…
x
Reference in New Issue
Block a user