From 8387d8eb466e1187ee6caeaeb773d67652797731 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 26 Apr 2022 02:38:13 +0200 Subject: put auth into the stash --- lib/JWebmail/Model/ReadMails/Role.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/JWebmail/Model') diff --git a/lib/JWebmail/Model/ReadMails/Role.pm b/lib/JWebmail/Model/ReadMails/Role.pm index 3c6d7ee..6d41964 100644 --- a/lib/JWebmail/Model/ReadMails/Role.pm +++ b/lib/JWebmail/Model/ReadMails/Role.pm @@ -12,9 +12,9 @@ sub Auth { password => {required => 1, defined => 1}, challenge => {defined => 1}, }; - my $self = @_ == 1 ? {$_[0]} : {@_}; + my $self = @_ == 1 ? $_[0] : {@_}; - return check($AuthCheck, $self, 1) || die; + return check($AuthCheck, $self, 0) || die Params::Check::last_error; } requires( -- cgit v1.2.3