Changeset 2535 for branches/release-39/lib/MT/App/Comments.pm
- Timestamp:
- 06/10/08 02:18:16 (18 months ago)
- Files:
-
- 1 modified
-
branches/release-39/lib/MT/App/Comments.pm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/App/Comments.pm
r2463 r2535 219 219 } 220 220 ); 221 return $app->login ( error => $app->translate('Invalid login.') );221 return $app->login_form( error => $app->translate('Invalid login.') ); 222 222 } 223 223 … … 237 237 $commenter = 238 238 $app->_create_commenter_assign_role( $q->param('blog_id') ); 239 return $app->login ( error => $app->translate('Invalid login') )239 return $app->login_form( error => $app->translate('Invalid login') ) 240 240 unless $commenter; 241 241 } … … 243 243 my $registration = $app->config->CommenterRegistration; 244 244 unless ( $registration && $registration->{Allow} && $blog->allow_commenter_regist ) { 245 return $app->login ( error => $app->translate('Successfully authenticated but signing up is not allowed. Please contact system administrator.') )245 return $app->login_form( error => $app->translate('Successfully authenticated but signing up is not allowed. Please contact system administrator.') ) 246 246 unless $commenter; 247 247 } … … 286 286 $ctx->{app} ||= $app; 287 287 MT::Auth->invalidate_credentials($ctx); 288 return $app->login ( error => $error || $app->translate("Invalid login") );288 return $app->login_form( error => $error || $app->translate("Invalid login") ); 289 289 } 290 290 … … 335 335 sub { 336 336 $app->_send_signup_confirmation( $user->id, $user->email, 337 $param->{entry_id}, $param->{blog_id}, $param->{static} );337 $param->{entry_id}, $param->{blog_id}, $param->{static} || $param->{return_url} ); 338 338 } 339 339 ); … … 532 532 } 533 533 534 $app->login (534 $app->login_form( 535 535 message => $app->translate( 536 536 'Thanks for the confirmation. Please sign in to comment.')
