diff --git a/classes/kohana/auth/orm/jelly.php b/classes/kohana/auth/orm/jelly.php index 80bd682..c3166cd 100644 --- a/classes/kohana/auth/orm/jelly.php +++ b/classes/kohana/auth/orm/jelly.php @@ -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; } diff --git a/classes/model/auth/jelly/auth/data.php b/classes/model/auth/jelly/auth/data.php index 161dc50..0f5e04a 100644 --- a/classes/model/auth/jelly/auth/data.php +++ b/classes/model/auth/jelly/auth/data.php @@ -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, )),