Skip to content

Commit

Permalink
[#339 state:resolved] Added call to MT::Auth->new_user when new comme…
Browse files Browse the repository at this point in the history
…nters are created.
  • Loading branch information
byrnereese committed Jul 2, 2010
1 parent 8ba2f3a commit db90a79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/MT/App/Comments.pm
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ sub _create_commenter_assign_role {
$commenter->type( MT::Author::AUTHOR() );
$commenter->status( MT::Author::ACTIVE() );
$commenter->auth_type( $app->config->AuthenticationModule );
return undef unless ( $commenter->save );
my $saved = MT::Auth->new_user( $app, $commenter );

return undef unless ( $saved );

require MT::Role;
require MT::Association;
Expand Down

0 comments on commit db90a79

Please sign in to comment.