mod_lastlog/README.markdown
changeset 1807 4d73a1a6ba68
parent 1786 29f3d6b7ad16
child 1863 4b838e61c68e
equal deleted inserted replaced
1806:0ab737feada6 1807:4d73a1a6ba68
       
     1 ---
       
     2 labels:
       
     3 - 'Stage-Beta'
       
     4 summary: Log last login time
       
     5 ...
       
     6 
       
     7 Introduction
       
     8 ============
       
     9 
       
    10 Simple module that stores the timestamp of when a user logs in.
       
    11 
       
    12 Usage
       
    13 =====
       
    14 
       
    15 As with all modules, copy it to your plugins directory and then add it
       
    16 to the modules\_enabled list:
       
    17 
       
    18         modules_enabled = {
       
    19                         -- ...
       
    20                         "lastlog",
       
    21                         -- ...
       
    22             }
       
    23 
       
    24 Configuration
       
    25 =============
       
    26 
       
    27 There are some options you can add to your config file:
       
    28 
       
    29   Name                      Values       Description
       
    30   ------------------------- ------------ ------------------------------------
       
    31   lastlog\_ip\_address      true/false   Log the IP address of the user?
       
    32   lastlog\_stamp\_offline   true/false   Add timestamp to offline presence?
       
    33 
       
    34 Usage
       
    35 =====
       
    36 
       
    37 You can check a user's last activity by running:
       
    38 
       
    39       prosodyctl mod_lastlog username@example.com
       
    40 
       
    41 Compatibility
       
    42 =============
       
    43 
       
    44   ----- -------
       
    45   0.9   Works
       
    46   ----- -------