diff options
author | xue <> | 2005-12-15 21:51:08 +0000 |
---|---|---|
committer | xue <> | 2005-12-15 21:51:08 +0000 |
commit | 6ddcb972cd4f53a7f0d0574d009d900a9f605447 (patch) | |
tree | fb5a7e7aa22834db0d10df65ee21c07ce46ebcab | |
parent | dbf44bde6e86c270d618be7661dd4e2fb5cf2563 (diff) |
added demo of using userfile to specify user data.
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | demos/controls/protected/application.xml | 2 | ||||
-rw-r--r-- | demos/controls/protected/userFile.xml | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/.gitattributes b/.gitattributes index d72dab89..6c27cc00 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,6 +13,7 @@ demos/controls/protected/pages/master/MasterPage.tpl -text demos/controls/protected/pages/private/MemberPage.php -text demos/controls/protected/pages/private/MemberPage.tpl -text demos/controls/protected/pages/private/config.xml -text +demos/controls/protected/userFile.xml -text demos/controls/themes/BlueTheme/buttons.skin -text demos/controls/themes/BlueTheme/icon_profile.gif -text demos/controls/themes/BlueTheme/labels.skin -text diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml index 2ae2e48a..56f37d03 100644 --- a/demos/controls/protected/application.xml +++ b/demos/controls/protected/application.xml @@ -18,7 +18,7 @@ <!-- modules configured and loaded when page service is requested -->
<modules>
<!-- user manager module -->
- <module id="users" class="System.Security.TUserManager" PasswordMode="Clear">
+ <module id="users" class="System.Security.TUserManager" UserFile="Demo.userFile" PasswordMode="Clear">
<user name="demo" password="work" />
<user name="demo2" password="work2" />
</module>
diff --git a/demos/controls/protected/userFile.xml b/demos/controls/protected/userFile.xml new file mode 100644 index 00000000..b5d02df0 --- /dev/null +++ b/demos/controls/protected/userFile.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?>
+
+<configuration>
+ <user name="demo3" password="work3" />
+</configuration>
\ No newline at end of file |