Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | protected function execute(InputInterface $input, OutputInterface $output) |
||
28 | { |
||
29 | $member = $this->getMember($input, $output); |
||
30 | if (!$member) { |
||
31 | return; |
||
32 | } |
||
33 | |||
34 | $lockoutMins = Member::config()->get('lock_out_delay_mins'); |
||
35 | $member->LockedOutUntil = date('Y-m-d H:i:s', DBDatetime::now()->getTimestamp() + $lockoutMins * 60); |
||
36 | $member->FailedLoginCount = 0; |
||
37 | $member->write(); |
||
38 | |||
39 | $output->writeln('Member <info>' . $member->Email . '</info> locked for <info>' . $lockoutMins . ' mins.</info>'); |
||
40 | } |
||
41 | } |
||
43 |