summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/controls/protected/application.xml24
1 files changed, 16 insertions, 8 deletions
diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml
index 6211399b..ef8280d6 100644
--- a/demos/controls/protected/application.xml
+++ b/demos/controls/protected/application.xml
@@ -4,18 +4,26 @@
<paths>
<alias id="Demo" path="." />
</paths>
+ <!-- modules configured and loaded for all services -->
<modules>
- <!--
+ <!-- make sure the path "protected" is writable by web server process if you enable this cache
<module id="cache" type="System.Data.TSqliteCache" DbFile="Demo.cache"/>
- -->
+ -->
<module id="session" type="THttpSession" />
- <module id="users" type="System.Security.TUserManager" PasswordMode="Clear">
- <user name="xue" password="qiang" />
- <user name="xue2" password="qiang2" />
- </module>
- <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" />
</modules>
<services>
- <service id="page" RootPath="Demo.pages" DefaultPage="home" />
+ <!-- page service, PageRootPath is required -->
+ <service id="page" PageRootPath="Demo.pages" DefaultPage="home">
+ <!-- modules configured and loaded when page service is requested -->
+ <modules>
+ <!-- user manager module -->
+ <module id="users" type="System.Security.TUserManager" PasswordMode="Clear">
+ <user name="demo" password="work" />
+ <user name="demo2" password="work2" />
+ </module>
+ <!-- auth manager module -->
+ <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" />
+ </modules>
+ </service>
</services>
</configuration> \ No newline at end of file