summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Model/ReadMails
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-04-26 02:38:13 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-04-26 02:38:13 +0200
commit8387d8eb466e1187ee6caeaeb773d67652797731 (patch)
tree0f3af0439d67c836b36108e4339900b1a2fcded6 /lib/JWebmail/Model/ReadMails
parentaffff46cea8dad31bb850ec27ba2a57f123e681b (diff)
put auth into the stash
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(