summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Model/ReadMails
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail/Model/ReadMails')
-rw-r--r--lib/JWebmail/Model/ReadMails/Role.pm4
1 files changed, 2 insertions, 2 deletions
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(