line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# SOAP::Lite style Hoobot::Login |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Hoobot::Login; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
45898
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
82
|
|
6
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
69
|
|
7
|
2
|
|
|
2
|
|
1713
|
use Hoobot::Page; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our @ISA = qw/Hoobot::Page/; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub username { |
12
|
|
|
|
|
|
|
my $self = shift; |
13
|
|
|
|
|
|
|
$self = $self->new unless ref $self; |
14
|
|
|
|
|
|
|
return $self->{username} unless @_; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
$self->{username} = shift; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub password { |
22
|
|
|
|
|
|
|
my $self = shift; |
23
|
|
|
|
|
|
|
$self = $self->new unless ref $self; |
24
|
|
|
|
|
|
|
return $self->{password} unless @_; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
$self->{password} = shift; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
return $self; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub prepare_update { |
32
|
|
|
|
|
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
$self = $self->new unless ref $self; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
# site doesn't matter, skin doesn't matter |
36
|
|
|
|
|
|
|
$self |
37
|
|
|
|
|
|
|
-> page('RegProcess') |
38
|
|
|
|
|
|
|
-> method('POST') |
39
|
|
|
|
|
|
|
-> clear_params |
40
|
|
|
|
|
|
|
-> param(bbctest => 1) |
41
|
|
|
|
|
|
|
-> param(cmd => 'fasttrack') |
42
|
|
|
|
|
|
|
-> param(loginname => $self->username) |
43
|
|
|
|
|
|
|
-> param(password => $self->password) |
44
|
|
|
|
|
|
|
-> param(remember => 1) |
45
|
|
|
|
|
|
|
-> param(submit => 'Login'); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
return $self->SUPER::prepare_update; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |