shibboleth-rails 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,8 @@ module Shibboleth::Rails
|
|
17
17
|
# names change due to marriage, etc.
|
18
18
|
# update_attribute is a NOOP if not different
|
19
19
|
user.update_attribute(:name_n, identity[:name_n])
|
20
|
-
user.update_attribute(:first_name,
|
21
|
-
user.update_attribute(:last_name,
|
20
|
+
user.update_attribute(:first_name, first_name) if user.respond_to?(:first_name) && first_name.present?
|
21
|
+
user.update_attribute(:last_name, last_name) if user.respond_to?(:last_name) && last_name.present?
|
22
22
|
|
23
23
|
user.update_role(affiliations) if user.respond_to?(:update_role)
|
24
24
|
user
|