Mercurial > prosody-wiki
annotate mod_lastlog.wiki @ 426:0df264dd44c4
update
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 13 Feb 2014 15:08:13 +0100 |
parents | 87df2ef1ee59 |
children | 049ad0dda0d1 |
rev | line source |
---|---|
303 | 1 #summary Log last login time |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
2 #labels Stage-Beta |
303 | 3 |
4 = Introduction = | |
5 | |
6 Simple module that stores the timestamp of when a user logs in. | |
7 | |
8 = Usage = | |
9 | |
10 As with all modules, copy it to your plugins directory and then add it to the modules_enabled list: | |
11 | |
12 {{{ | |
13 modules_enabled = { | |
14 -- ... | |
15 "lastlog", | |
16 -- ... | |
17 } | |
18 }}} | |
19 | |
20 = Configuration = | |
21 | |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
22 There are some options you can add to your config file: |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
23 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
24 || *Name* || *Values* || *Description* || |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
25 || lastlog_ip_address || true/false || Log the IP address of the user? || |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
26 || lastlog_stamp_offline || true/false || Log when a user goes offline> || |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
27 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
28 = Usage = |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
29 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
30 You can check a user's last activity by running: |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
31 |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
32 {{{ |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
33 prosodyctl mod_lastlog username@example.com |
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
34 }}} |
303 | 35 |
36 = Compatibility = | |
421
87df2ef1ee59
Update docs to explain about prosodyctl usage, and add the lastlog_stamp_offline option (thanks kdex)
MWild1@gmail.com
parents:
303
diff
changeset
|
37 || 0.9 || Works || |