Skip to content

Commit

Permalink
Merge pull request #68 from nielsz/patch-2
Browse files Browse the repository at this point in the history
UserBundle uses 'email' instead of 'e-mail'
  • Loading branch information
makasim committed Jan 28, 2013
2 parents 4bdc71e + 1a20ebb commit 6cddb2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/doc/configure_user_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class OpenIdUserManager extends UserManager
}
// in this example, we fetch User entities by e-mail
$user = $this->entityManager->getRepository('AcmeDemoBundle:User')->findOneBy(array(
'e-mail' => $attributes['contact/email']
'email' => $attributes['contact/email']
));
if (null === $user) {
Expand Down Expand Up @@ -351,4 +351,4 @@ You can use the `/logout` url to logout users.
> For example, when an `User` is removed, remove the corresponding `OpenIdIdentity` (no more used).
> Within our previous example, if an `User` e-mail address is modified, we should remove the `OpenIdIdentity` too. Otherwise he will still be able to log in with it!

Return to [index](index.md) to learn more.
Return to [index](index.md) to learn more.

0 comments on commit 6cddb2d

Please sign in to comment.