mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Allow "-" in password to make it unchangable (bug #2386)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3729 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -107,7 +107,7 @@ sub check_login()
|
||||
if (/([^\s]+)\s*\=\>?\s*(.*)/) {
|
||||
@fields = split(/\,\s*/, $2);
|
||||
# print "<p>Mailbox is $1\n";
|
||||
if (($mbox eq $1) && ($pass eq $fields[0]) && ($context eq $category)) {
|
||||
if (($mbox eq $1) && (($pass eq $fields[0]) || ("-${pass}" eq $fields[0])) && ($context eq $category)) {
|
||||
return ($fields[1] ? $fields[1] : "Extension $mbox in $context", $category);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user