Commit b0a28123 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

[bug] Authorizing move_user function causes crash.

parent a0c198cb
......@@ -43,7 +43,7 @@ my %attrmap = (
gecos => 'X-Sympa-Display-Name',
sender => 'X-Sympa-Sender',
);
my @optattrs = qw(arc reception visibility);
my @optattrs = qw(arc current_email reception visibility);
sub new {
my $class = shift;
......
......@@ -119,7 +119,8 @@ sub _twist {
$request->{quiet} ||= ($action =~ /,\s*quiet\b/i); # Overwrite.
$request->{notify} = ($action =~ /,\s*notify\b/i);
return ['Sympa::Spindle::DispatchRequest'];
} elsif ($action =~ /\Arequest_auth\b(?:\s*[[]\s*(\S+)\s*[]])?/i) {
} elsif (
$action =~ /\Arequest_auth\b(?:\s*[(]\s*[[]\s*(\S+)\s*[]]\s*[)])?/i) {
my $to = $1;
if ($to and $to eq 'email') {
$request->{sender_to_confirm} = $request->{email};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment