Skip to content

Commit

Permalink
Allow for updating of user email address
Browse files Browse the repository at this point in the history
  • Loading branch information
rydurham committed Aug 15, 2014
1 parent bd30422 commit 361ca7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Sentinel/Repo/User/SentryUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ public function update($data)
$user->first_name = e($data['firstName']);
$user->last_name = e($data['lastName']);

// Update Email address?
if (array_key_exists('email', $data))
{
$user->email = $data['email'];
}

// Are there additional fields specified in the config?
// If so, update them here.
if ($this->config->has('Sentinel::config.additional_user_fields'))
Expand Down

0 comments on commit 361ca7e

Please sign in to comment.