Commit 3bdf3750a81f260063c3470ccc0d86070d01c552
1 parent
bc0652e4
Exists in
master
add some defaults for env user
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/omniauth/strategies/env.rb
| @@ -22,6 +22,10 @@ module OmniAuth | @@ -22,6 +22,10 @@ module OmniAuth | ||
| 22 | 22 | ||
| 23 | @uid = env_user.gsub(/@.*/, '') | 23 | @uid = env_user.gsub(/@.*/, '') |
| 24 | 24 | ||
| 25 | + # fill in some defaults | ||
| 26 | + @user_data[:name] = @uid | ||
| 27 | + @user_data[:email] = env_user | ||
| 28 | + | ||
| 25 | fill_ldap_info unless @options.empty? | 29 | fill_ldap_info unless @options.empty? |
| 26 | 30 | ||
| 27 | @env['omniauth.auth'] = auth_hash | 31 | @env['omniauth.auth'] = auth_hash |