summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/JWebmail/Controller')
-rw-r--r--lib/JWebmail/Controller/Webmail.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/JWebmail/Controller/Webmail.pm b/lib/JWebmail/Controller/Webmail.pm
index ce18de8..b094a43 100644
--- a/lib/JWebmail/Controller/Webmail.pm
+++ b/lib/JWebmail/Controller/Webmail.pm
@@ -31,7 +31,7 @@ sub auth {
my $self = shift;
my $user = $self->session(S_USER);
- my ($pw, $ch) = $self->session_passwd;
+ my ($pw, $ch) = $self->session_passwd();
unless ($user && $pw) {
$self->flash(message => $self->l('No active session.'));
@@ -249,7 +249,7 @@ sub sendmail {
attach => scalar $v->optional('attach', 'non_empty_ul')->upload->param,
from => scalar $self->stash(ST_AUTH)->{user},
);
- $mail{attach_type} = Mojolicious::Types->new->file_type($mail{attach}->filename) if $mail{attach};
+ $mail{attach_type} = Mojolicious::Types->new()->file_type($mail{attach}->filename) if $mail{attach};
if ($v->has_error) {
$self->log->debug("mail send failed. Error in @{ $v->failed }");