Author: prabath
Date: Tue Feb 26 01:14:43 2008
New Revision: 14210

Log:

fix - adding profiles

Modified:
   
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/users/IdentityDefaultUserStoreAdmin.java

Modified: 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/users/IdentityDefaultUserStoreAdmin.java
==============================================================================
--- 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/users/IdentityDefaultUserStoreAdmin.java
       (original)
+++ 
trunk/solutions/identity/modules/identity-provider/src/main/java/org/wso2/solutions/identity/users/IdentityDefaultUserStoreAdmin.java
       Tue Feb 26 01:14:43 2008
@@ -64,7 +64,7 @@
         }
 
         Connection dbConnection = null;
-        boolean isDefaultProfile = false;
+        boolean isDefaultProfile = true;
 
         try {
 
@@ -117,13 +117,11 @@
                     isDefaultProfile = false;
                 }
                 results.close();
-            } else {
-                // this is the first time user sets the attributes
-                isDefaultProfile = true;
-                if (profileName == null)
-                    profileName = "Default Profile";
             }
 
+            if (profileName == null && isDefaultProfile)
+                profileName = "Default Profile";
+
             dbConnection.commit();
 
             addUserProfile(userid, profileId, isDefaultProfile, profileName);

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to