learn-co-curriculum / omniauth_lab

Other
1 stars 349 forks source link

Sessions#create is incorrect #44

Closed ChristopherBlack22 closed 2 years ago

ChristopherBlack22 commented 2 years ago

Canvas Link

https://learning.flatironschool.com/courses/1881/assignments/125548?module_item_id=259465

Concern

The code in sessions#create reads, session[:name] = request.env['omniauth.auth']['info']['nick-name'] but should read, session[:name] = request.env['omniauth.auth']['info']['name'] As a result the session is not correctly updated and the conditional statements in the home page are not triggered so that the diagnostic data is never shown.

Additional Context

No response

Suggested Changes

No response