Permalink
Browse files

don't enable is_active when looking for already registered email

  • Loading branch information...
1 parent 9341065 commit c488d3d938a7186eff5d62eb058211aef7683e27 @lestrrat lestrrat committed Apr 16, 2009
Showing with 8 additions and 4 deletions.
  1. +8 −4 core/lib/Pixis/Web/Controller/Signup.pm
View
12 core/lib/Pixis/Web/Controller/Signup.pm
@@ -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;

0 comments on commit c488d3d

Please sign in to comment.