Sfoglia il codice sorgente

HPCC-18823 Change default location for Login/GetUserName pages

The default installation folder for both Login.html and
GetUserName.html are moved to /esp/files/. ESP code has to match
the changes.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 7 anni fa
parent
commit
f26f751751

+ 2 - 2
esp/platform/espcontext.hpp

@@ -41,8 +41,8 @@ static const char* const SESSION_ID_COOKIE = "ESPSessionID";
 static const char* const SESSION_START_URL_COOKIE = "ESPAuthURL";
 static const char* const SESSION_TIMEOUT_COOKIE = "ESPSessionTimeoutSeconds";
 static const char* const SESSION_ID_TEMP_COOKIE = "ESPAuthIDTemp";
-static const char* const DEFAULT_LOGIN_URL = "/esp/files/eclwatch/templates/Login.html";
-static const char* const DEFAULT_GET_USER_NAME_URL = "/esp/files/eclwatch/templates/GetUserName.html";
+static const char* const DEFAULT_LOGIN_URL = "/esp/files/Login.html";
+static const char* const DEFAULT_GET_USER_NAME_URL = "/esp/files/GetUserName.html";
 static const char* const DEFAULT_UNRESTRICTED_RESOURCES = "/favicon.ico,/esp/files/*,/esp/xslt/*";
 
 //xpath in dali

+ 2 - 2
initfiles/componentfiles/configxml/esp.xsd.in

@@ -346,7 +346,7 @@
                             </xs:appinfo>
                           </xs:annotation>
                         </xs:attribute>
-                        <xs:attribute name="getUserNameURL" type="xs:string" use="optional" default="/esp/files/eclwatch/templates/GetUserName.html">
+                        <xs:attribute name="getUserNameURL" type="xs:string" use="optional" default="/esp/files/GetUserName.html">
                           <xs:annotation>
                             <xs:appinfo>
                               <tooltip>URL to getUserName</tooltip>
@@ -399,7 +399,7 @@
 	                </xs:restriction>
 	              </xs:simpleType>
 	            </xs:attribute>
-	            <xs:attribute name="logonURL" type="xs:string" use="optional" default="/esp/files/eclwatch/templates/Login.html">
+	            <xs:attribute name="logonURL" type="xs:string" use="optional" default="/esp/files/Login.html">
 	              <xs:annotation>
 	                <xs:appinfo>
 	                  <tooltip>Logon URL</tooltip>