Commit f32f899f96b4d85ff362aa63457f348c1da6b369
1 parent
ae5b9fcb
Exists in
master
and in
2 other branches
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,6 +12,7 @@ module OmniAuth | ||
| 12 | end | 12 | end |
| 13 | 13 | ||
| 14 | def request_phase | 14 | def request_phase |
| 15 | + @user_data = {} | ||
| 15 | @uid = validate_remote_user | 16 | @uid = validate_remote_user |
| 16 | return fail!(:no_remote_user) unless @uid | 17 | return fail!(:no_remote_user) unless @uid |
| 17 | 18 | ||
| @@ -27,7 +28,7 @@ module OmniAuth | @@ -27,7 +28,7 @@ module OmniAuth | ||
| 27 | 28 | ||
| 28 | uid { @uid['EMAIL'] } | 29 | uid { @uid['EMAIL'] } |
| 29 | info{ @user_data } | 30 | info{ @user_data } |
| 30 | - | 31 | + |
| 31 | end | 32 | end |
| 32 | end | 33 | end |
| 33 | end | 34 | end |