From 78dfb7f7d848133e986d2765db45761f3ed270e8 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 9 Aug 2024 18:02:11 +0200 Subject: [PATCH] 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 --- lib/NGCP/Panel/Utils/Auth.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Utils/Auth.pm b/lib/NGCP/Panel/Utils/Auth.pm index e046072d3c..3043ec84af 100644 --- a/lib/NGCP/Panel/Utils/Auth.pm +++ b/lib/NGCP/Panel/Utils/Auth.pm @@ -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',