blob: 150d4c04377e9499e80d6e55f2b6f4cb3f19b2ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<% ntable("#cccccc") %>
<TR>
<TD ALIGN="right">Username</TD>
<TD>
<INPUT TYPE = "text"
NAME = "username"
VALUE = "<% $opt{'username'} %>"
SIZE = <% $ulen2 %>
MAXLENGTH = <% $ulen %>
>
</TD>
</TR>
<TR>
<TD ALIGN="right">Domain</TD>
<TD>
<SELECT NAME="domsvc">
<OPTION>(none)</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD ALIGN="right">Password</TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password"
VALUE = "<% $opt{'password'} %>"
SIZE = <% $pmax2 %>
MAXLENGTH = <% $passwordmax %>>
% unless ( $opt{'password_verify'} ) {
(blank to generate)
% }
</TD>
</TR>
% if ( $opt{'password_verify'} ) {
<TR>
<TD ALIGN="right">Re-enter Password</TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password2"
VALUE = "<% $opt{'password2'} %>"
SIZE = <% $pmax2 %>
MAXLENGTH = <% $passwordmax %>>
</TD>
</TR>
% }
% if ( $conf->exists('security_phrase') ) {
<TR>
<TD ALIGN="right">Security Phrase</TD>
<TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} %>">
</TD>
</TR>
% } else {
<INPUT TYPE="hidden" NAME="sec_phrase" VALUE="">
% }
% if ( $conf->exists('svc_acct-disable_access_number') ) {
<INPUT TYPE="hidden" NAME="popnum" VALUE="">
% } else {
<TR>
<TD ALIGN="right">Access number</TD>
%# XXX should gain "area code" selection and labels on the dropdowns
<TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
</TR>
% }
</TABLE>
<%init>
#use FS::svc_acct_pop;
my( %opt ) = @_;
my $conf = new FS::Conf;
#false laziness: (mostly) copied from edit/svc_acct.cgi
#$ulen = $svc_acct->dbdef_table->column('username')->length;
my $ulen = dbdef->table('svc_acct')->column('username')->length;
my $ulen2 = $ulen+2;
my $passwordmax = $conf->config('passwordmax') || 8;
my $pmax2 = $passwordmax + 2;
</%init>
|