Permalink
Browse files

Merge branch 'master' of git@github.com:lestrrat/pixis

  • Loading branch information...
2 parents ab8d7b9 + c488d3d commit 0555003aaa56c2db7626fe59d5680d85a8a6a97b User committed Apr 16, 2009
Showing with 8 additions and 4 deletions.
  1. +8 −4 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 0555003

Please sign in to comment.