| 1 | package WebService::CloudFlare::Host::Request::UserAuth; | ||
| 2 | use Moose; | ||
| 3 | with 'WebService::CloudFlare::Host::Role::Request'; | ||
| 4 | |||
| 5 | has 'req_map' => ( | ||
| 6 | is => 'ro', | ||
| 7 | isa => 'HashRef[Str]', | ||
| 8 | init_arg => undef, | ||
| 9 | default => sub {{ | ||
| 10 | 'act' => 'action', | ||
| 11 | 'cloudflare_email' => 'email', | ||
| 12 | 'cloudflare_pass' => 'pass', | ||
| 13 | 'unique_id' => 'unique_id', | ||
| 14 | 'clobber_unique_id' => 'clobber', | ||
| 15 | }}, | ||
| 16 | ); | ||
| 17 | |||
| 18 | has 'action' => ( | ||
| 19 | is => 'ro', | ||
| 20 | isa => 'Str', | ||
| 21 | init_arg => undef, | ||
| 22 | default => 'user_auth' | ||
| 23 | ); | ||
| 24 | |||
| 25 | has [ qw/ email pass / ] | ||
| 26 | => (is => 'ro', isa => 'Str', required => 0); | ||
| 27 | |||
| 28 | has [ qw/ unique_id clobber / ] | ||
| 29 | => (is => 'ro', isa => 'Str', required => 0); | ||
| 30 | |||
| 31 | 1; |