summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Data/users.xml
diff options
context:
space:
mode:
authorwei <>2006-07-17 07:29:51 +0000
committerwei <>2006-07-17 07:29:51 +0000
commitb230beea20bc18f05d51b8e1f76c99c74a12fff4 (patch)
treee44657bcd27786342e3ee9b4e99d00ba16dc2443 /demos/time-tracker/protected/App_Data/users.xml
parented600b0d55dd7c38e4416cf4bd6df43a71244b81 (diff)
Add "remember me" feature
Diffstat (limited to 'demos/time-tracker/protected/App_Data/users.xml')
-rw-r--r--demos/time-tracker/protected/App_Data/users.xml8
1 files changed, 5 insertions, 3 deletions
diff --git a/demos/time-tracker/protected/App_Data/users.xml b/demos/time-tracker/protected/App_Data/users.xml
index 78de588a..f4151c30 100644
--- a/demos/time-tracker/protected/App_Data/users.xml
+++ b/demos/time-tracker/protected/App_Data/users.xml
@@ -82,12 +82,14 @@
(#token#, #username#, NOW())
</insert>
-<select id="ValidateAutoSignon" resultClass="TimeTrackerUser">
+<select id="ValidateAutoSignon" resultMap="time-tracker-user">
SELECT
users.Username as Name,
- users.EmailAddress as EmailAddress
+ users.EmailAddress as EmailAddress,
+ user_roles.RoleType as role
FROM
- users, signon
+ users LEFT JOIN user_roles ON users.Username = user_roles.UserID,
+ signon
WHERE
users.Username = signon.Username
AND signon.SessionToken = #value#