Software /
code /
prosody-modules
Comparison
mod_lastlog/README.md @ 6209:d611ed13df7e draft
Merge
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Tue, 18 Mar 2025 00:16:25 +0700 |
parent | 3117:mod_lastlog/README.markdown@dd6313ddd3e0 |
comparison
equal
deleted
inserted
replaced
6208:e20901443eae | 6209:d611ed13df7e |
---|---|
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 ``` lua | |
19 modules_enabled = { | |
20 -- other modules | |
21 "lastlog", | |
22 } | |
23 ``` | |
24 | |
25 Configuration | |
26 ============= | |
27 | |
28 There are some options you can add to your config file: | |
29 | |
30 Name Type Default Description | |
31 ------------------------- ------- ------- ------------------------------------ | |
32 lastlog\_ip\_address boolean false Log the IP address of the user? | |
33 lastlog\_stamp\_offline boolean false Add timestamp to offline presence? | |
34 | |
35 Usage | |
36 ===== | |
37 | |
38 You can check a user's last activity by running: | |
39 | |
40 prosodyctl mod_lastlog username@example.com | |
41 | |
42 Compatibility | |
43 ============= | |
44 | |
45 ----- ------- | |
46 0.9 Works | |
47 ----- ------- |