Commit f32f899f96b4d85ff362aa63457f348c1da6b369

Authored by Thiago Ribeiro
1 parent ae5b9fcb

Initialize @user_data like a hash

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
lib/omniauth/strategies/remote_user.rb
... ... @@ -12,6 +12,7 @@ module OmniAuth
12 12 end
13 13  
14 14 def request_phase
  15 + @user_data = {}
15 16 @uid = validate_remote_user
16 17 return fail!(:no_remote_user) unless @uid
17 18  
... ... @@ -27,7 +28,7 @@ module OmniAuth
27 28  
28 29 uid { @uid['EMAIL'] }
29 30 info{ @user_data }
30   -
  31 +
31 32 end
32 33 end
33 34 end
... ...