Skip to content

Commit

Permalink
Implements #2. Save user avatar if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
biakaveron committed Nov 11, 2011
1 parent 775c59a commit d9d67a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions classes/kohana/auth/orm/jelly.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ protected function _save_user(array $data)
->set('service_type', $data['service_type'])
->set('service_name', $data['service_name'])
->set('email', $data['email']);
->set('avatar', Arr::get($data, 'avatar'));
$user->save();
return $user;
}
Expand Down
1 change: 1 addition & 0 deletions classes/model/auth/jelly/auth/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static function initialize(Jelly_Meta $meta)
'service_name' => Jelly::field('string'),
'service_type' => Jelly::field('string'),
'email' => Jelly::field('email'),
'avatar' => Jelly::field('string'),
'is_active' => Jelly::field('boolean', array(
'default' => TRUE,
)),
Expand Down

0 comments on commit d9d67a5

Please sign in to comment.