bpluser 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/bpluser/user.rb +2 -1
- data/lib/bpluser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c409b7b9c1d82c5918ace9bbe0fe72cea2133d1d
|
4
|
+
data.tar.gz: 7ffd1f0d43b6b0330f5feebdda2d814cd0e2ef0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8876be6e95b2ffb0101b7490e90aeebe774f57f81961746fec2d46cbc144857bf021017b82d648970a5298cede56d4c3aae983da56e356bdb9851277a09b9f89
|
7
|
+
data.tar.gz: 0235628b4000d42124c3e09bf74dcd4f214eddbdec74d29492cfde79977b130f2fed42c29c3f0a6eaae280788e972c75053786265b3d22c3b24bc86754b01266
|
data/app/models/bpluser/user.rb
CHANGED
@@ -70,11 +70,12 @@ module Bpluser::User
|
|
70
70
|
#first_name:ldap_info_details.first_name,
|
71
71
|
#last_name:ldap_info_details.last_name,
|
72
72
|
unless user
|
73
|
+
email_value = polaris_info_details[:email].present? ? polaris_info_details[:email] : ''
|
73
74
|
#For some reason, User.create has no id set despite that intending to be autocreated. Unsure what is up with that. So trying this.
|
74
75
|
user = User.new(provider:auth_response.provider,
|
75
76
|
uid:auth_response[:uid],
|
76
77
|
username:polaris_info_details[:first_name],
|
77
|
-
email:
|
78
|
+
email:email_value,
|
78
79
|
password:Devise.friendly_token[0,20],
|
79
80
|
display_name:polaris_info_details[:first_name] + " " + polaris_info_details[:last_name],
|
80
81
|
first_name: polaris_info_details[:first_name],
|
data/lib/bpluser/version.rb
CHANGED