From ef03b6091607f1dbd0a3b261b5436e4b093f36ff Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Tue, 24 Jun 2014 13:21:26 +0200 Subject: [PATCH] Formatting. --- .../Books/Users/FoxxBundledApps/Sessions.mdpp | 17 ++++++----------- .../Books/Users/FoxxBundledApps/Users.mdpp | 9 ++------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/Documentation/Books/Users/FoxxBundledApps/Sessions.mdpp b/Documentation/Books/Users/FoxxBundledApps/Sessions.mdpp index 646b550961..b81611df0c 100644 --- a/Documentation/Books/Users/FoxxBundledApps/Sessions.mdpp +++ b/Documentation/Books/Users/FoxxBundledApps/Sessions.mdpp @@ -49,17 +49,12 @@ try { Session objects are instances of a Foxx model with the following attributes: -!SUBSECTION sessionData - -Volatile session data. This can be an arbitrary object that will be stored with the session in the database. If you want to store session-specific (rather than user-specific) data in the database, this is the right place for that. - -!SUBSECTION uid - -The session's active user's *_key* or *undefined* (no active user). - -!SUBSECTION userData - -The session's active user's *userData* attribute or an empty object. +* *sessionData*: volatile session data. This can be an arbitrary object that will be stored with the session in the database. If you want to store session-specific (rather than user-specific) data in the database, this is the right place for that. +* *uid*: the session's active user's *_key* or *undefined* (no active user). +* *userData*: the session's active user's *userData* attribute or an empty object. +* *created*: timestamp the session was created at. +* *lastAccess*: timestamp of the last time the session was fetched from the database. +* *lastUpdate*: timestamp of the last time the session was written to the database. !SECTION Create a session diff --git a/Documentation/Books/Users/FoxxBundledApps/Users.mdpp b/Documentation/Books/Users/FoxxBundledApps/Users.mdpp index 986f1987d4..32ea472e0a 100644 --- a/Documentation/Books/Users/FoxxBundledApps/Users.mdpp +++ b/Documentation/Books/Users/FoxxBundledApps/Users.mdpp @@ -48,13 +48,8 @@ try { User objects are instances of a Foxx model with the following attributes: -!SUBSECTION userData - -Application-specific user data. This is an arbitrary object that must at least have a *username* property set to the user's username. - -!SUBSECTION authData - -An arbitrary object used by authentication apps to store sensitive data. For password authentication this could be a hash, for third-party authentication services this could be information about the user's identity. This attribute should never be exposed to the user directly. +* *userData*: application-specific user data. This is an arbitrary object that must at least have a *username* property set to the user's username. +* *authData*: an arbitrary object used by authentication apps to store sensitive data. For password authentication this could be a hash, for third-party authentication services this could be information about the user's identity. This attribute should never be exposed to the user directly. !SECTION Create a user