TIC and PKT passwords are case insensitive, so convert them to uppercase when we are using them

This commit is contained in:
2023-11-25 09:47:58 +11:00
parent 4070a060c3
commit 6abf10ab0b
3 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ class PacketProcess implements ShouldQueue
}
// Check the packet password
if ($this->ao->session('pktpass') !== $pkt->password) {
if (strtoupper($this->ao->session('pktpass')) !== strtoupper($pkt->password)) {
Log::error(sprintf('%s:! Packet from [%s] with password [%s] is invalid.',self::LOGKEY,$this->ao->ftn,$pkt->password));
Notification::route('netmail',$this->ao)->notify(new PacketPasswordInvalid($pkt->password,$this->file->nameas));