aboutsummaryrefslogtreecommitdiff
path: root/www/sign.pl
diff options
context:
space:
mode:
Diffstat (limited to 'www/sign.pl')
-rwxr-xr-xwww/sign.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/sign.pl b/www/sign.pl
index 53d7015..a0fd11f 100755
--- a/www/sign.pl
+++ b/www/sign.pl
@@ -86,7 +86,7 @@ while (my $cgi = new CGI::Fast) {
if ($email =~ /^(.*?)@(.*)/) { $domain = $2; }
die "User is not authorized to use this email address"
- unless ($session_user ~~ email_users($email));
+ unless ($session_user ~~ [email_users($email)]);
my $sig = sign $key, decode_json($user_pubkey), $email, $duration, $domain;
say encode_json({signature => $sig});