Skip to content

Commit

Permalink
don't enable is_active when looking for already registered email
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Apr 16, 2009
1 parent 9341065 commit c488d3d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core/lib/Pixis/Web/Controller/Signup.pm
Expand Up @@ -20,10 +20,14 @@ sub start :Index :Path :Args(0) :FormConfig {
my $form = $c->stash->{form};
if ($form->submitted_and_valid) {
# check if this email has already been taken
if ( $c->registry(api => 'Member')->load_from_email($form->param('email')) ) {
$form->form_error_message("使用されたメールアドレスはすでに登録されています");
$form->force_error_message(1);
return;
my $member_api = $c->registry(api => 'Member');
{
local $member_api->{resultset_constraints} = {};
if ( $member_api->load_from_email($form->param('email')) ) {
$form->form_error_message("使用されたメールアドレスはすでに登録されています");
$form->force_error_message(1);
return;
}
}

my $params = $form->params;
Expand Down

0 comments on commit c488d3d

Please sign in to comment.