Skip to content
This repository was archived by the owner on Jan 19, 2022. It is now read-only.

Commit 3ef9215

Browse files
committed
doesn't belong here, refs #87
1 parent 0e18701 commit 3ef9215

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/descartes/routes/helpers.rb

-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ def google_callback
1717
user = env['omniauth.auth']['info']
1818
email = user['email'].is_a?(Array) ? user['email'].first : user['email']
1919
email = email.downcase
20-
2120
session['user'] = {
2221
'identity_url' => env['omniauth.auth']['uid'],
2322
'email' => email,
2423
'first_name' => user['first_name'],
2524
'last_name' => user['last_name'],
26-
'preferences' => User.find_or_create_by_email(:email => email).preferences
2725
}
2826
end
2927
redirect redirect_to || '/'

0 commit comments

Comments
 (0)