modifications to ensure that Venice can operate without certain personal
information prompted for at registration time, if certain sites should elect to omit that information
This commit is contained in:
@@ -619,7 +619,14 @@ class UserContextImpl implements UserContext, ServiceProvider, PropertyProvider
|
||||
if (my_email==null)
|
||||
my_email = rc.getEmail();
|
||||
if (full_name==null)
|
||||
{ // compute the full name
|
||||
full_name = rc.getGivenName() + " " + rc.getFamilyName();
|
||||
full_name = full_name.trim();
|
||||
if (StringUtil.isStringEmpty(full_name))
|
||||
full_name = username;
|
||||
|
||||
} // end if
|
||||
|
||||
if (my_pseud==null)
|
||||
my_pseud = full_name;
|
||||
return rc;
|
||||
|
||||
@@ -86,7 +86,7 @@ public class BuildVCard
|
||||
buf.append(family_name);
|
||||
if (!StringUtil.isStringEmpty(suffix))
|
||||
buf.append(' ').append(suffix);
|
||||
String s = buf.toString();
|
||||
String s = buf.toString().trim();
|
||||
if (s.length()==0)
|
||||
return null;
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user