projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c4acb59
)
fix conf callback (align with v3/master), RT#25239 weirdness?
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 10 Dec 2013 20:18:26 +0000
(12:18 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 10 Dec 2013 20:18:26 +0000
(12:18 -0800)
FS/FS/svc_phone.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_phone.pm
b/FS/FS/svc_phone.pm
index
79cd6fa
..
7e5e26f
100644
(file)
--- a/
FS/FS/svc_phone.pm
+++ b/
FS/FS/svc_phone.pm
@@
-25,12
+25,13
@@
$DEBUG = 0;
@pw_set = ( 'a'..'k', 'm','n', 'p-z', 'A'..'N', 'P'..'Z' , '2'..'9' );
#ask FS::UID to run this stuff for us later
@pw_set = ( 'a'..'k', 'm','n', 'p-z', 'A'..'N', 'P'..'Z' , '2'..'9' );
#ask FS::UID to run this stuff for us later
-
$FS::UID::callback{'FS::svc_acct'} =
sub {
+
FS::UID->install_callback(
sub {
$conf = new FS::Conf;
$phone_name_max = $conf->config('svc_phone-phone_name-max_length');
$passwordmin = $conf->config('sip_passwordmin') || 0;
$passwordmax = $conf->config('sip_passwordmax') || 80;
$conf = new FS::Conf;
$phone_name_max = $conf->config('svc_phone-phone_name-max_length');
$passwordmin = $conf->config('sip_passwordmin') || 0;
$passwordmax = $conf->config('sip_passwordmax') || 80;
-};
+}
+);
=head1 NAME
=head1 NAME