From ee37940a3ad12c1da71254341c84a841e380f5c1 Mon Sep 17 00:00:00 2001 From: Anton Kostyuk Date: Wed, 10 Feb 2021 13:14:39 +0300 Subject: [PATCH] Add first_name and last_name to info --- lib/omniauth/strategies/yandex.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/omniauth/strategies/yandex.rb b/lib/omniauth/strategies/yandex.rb index ae7fc53..c49fa2e 100755 --- a/lib/omniauth/strategies/yandex.rb +++ b/lib/omniauth/strategies/yandex.rb @@ -26,7 +26,9 @@ class Yandex < OmniAuth::Strategies::OAuth2 prune!({ 'nickname' => raw_info['display_name'], 'email' => raw_info['default_email'], - 'name' => raw_info['real_name'] + 'name' => raw_info['real_name'], + 'first_name' => raw_info['first_name'], + 'last_name' => raw_info['last_name'] }) end