MT#60656 do not check max_age if user does not exist

* prevent max age check if user does not exist (not logged
  in) and return 1 instead.

Change-Id: I5d1af5f46eec6a3eea6df0d719a35d1fedb19b3e
mr13.0
Kirill Solomko 9 months ago
parent b041888807
commit 78dfb7f7d8

@ -655,6 +655,8 @@ sub ban_user {
sub check_max_age {
my $c = shift;
return 1 unless $c->user;
my $pass_last_modify_time;
my $strp = DateTime::Format::Strptime->new(
pattern => '%Y-%m-%dT%H:%M:%S',

Loading…
Cancel
Save