Author: keith
Date: Wed Jan 23 07:20:50 2008
New Revision: 12777

Log:

Deleting SHARED user



Modified:
   trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
   
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   trunk/mashup/java/modules/www/signin.jsp

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java
==============================================================================
--- trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java     
(original)
+++ trunk/mashup/java/modules/core/src/org/wso2/mashup/MashupConstants.java     
Wed Jan 23 07:20:50 2008
@@ -93,8 +93,6 @@
     public static final String SYSTEM_USER_PASSWORD = "system";
     public static final String SAMPLES_USER = "samples";
     public static final String SAMPLES_USER_PASSWORD = "samples";
-    public static final String SHARED_USER = "shared";
-    public static final String SHARED_USER_PASSWORD = "shared";
 
     public static final String SEPARATOR_CHAR = "-";
     public static final String MASHUP_USER_ROLE = "mashup_user";

Modified: 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
==============================================================================
--- 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   (original)
+++ 
trunk/mashup/java/modules/javascriptdeployer/src/org/wso2/mashup/deployer/JSDeployer.java
   Wed Jan 23 07:20:50 2008
@@ -712,7 +712,6 @@
                 us.addUser(RegistryConstants.ANONYMOUS_USER, 
RegistryConstants.ANONYMOUS_PASSWORD);
                 us.addUser(RegistryConstants.SYSTEM_USER, 
RegistryConstants.SYSTEM_PASSWORD);
                 us.addUser(MashupConstants.SAMPLES_USER, 
MashupConstants.SAMPLES_USER_PASSWORD);
-                us.addUser(MashupConstants.SHARED_USER, 
MashupConstants.SHARED_USER_PASSWORD);
                 us.addRole(RegistryConstants.ADMIN_ROLE);
                 us.addRole(RegistryConstants.EVERYONE_ROLE);
                 // Assign system user the 'admin' role.
@@ -935,10 +934,6 @@
                 RegistryUtils.createUser(secureRegistry, realm, 
MashupConstants.SAMPLES_USER,
                                          "Samples", "none", "Samples User");
 
-                // Create the 'shared' user profile
-                RegistryUtils.createUser(secureRegistry, realm, 
MashupConstants.SHARED_USER,
-                                         "Shared", "none", "Shared Mashups");
-
                 if (createPrimary && !MashupUtils.isInitialSetupComplete()) {
                     //Create the admin profile using information from a config 
file.
                     RegistryUtils

Modified: trunk/mashup/java/modules/www/signin.jsp
==============================================================================
--- trunk/mashup/java/modules/www/signin.jsp    (original)
+++ trunk/mashup/java/modules/www/signin.jsp    Wed Jan 23 07:20:50 2008
@@ -66,8 +66,7 @@
     if (firsttime != null) {
         // Prevent login using default profiles.
         if (nameProvided.equals(MashupConstants.SAMPLES_USER) ||
-                nameProvided.equals(MashupConstants.SYSTEM_USER) ||
-                nameProvided.equals(MashupConstants.SHARED_USER)) {
+                nameProvided.equals(MashupConstants.SYSTEM_USER)) {
             success = false;
         } else {
             try {

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to