Skip to content

Commit cadffe8

Browse files
committed
update
1 parent 6a2ea54 commit cadffe8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

03-docs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ And there is more information available about specific topics:
2020
* [Cache](/docs/cache)
2121
* [Session](/docs/session)
2222
* [Authentication](/docs/authentication)
23+
* [Totp](/docs/totp)
24+
* [Firewall](/docs/firewall)
2325
* [Webservers](/docs/webservers)

04-api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,17 @@ This is a reference of all global variables and functions.
126126
| `I18n::weekDay($day):string ` | *.php | Get weekday name |
127127
| `I18n::monthName($month):string ` | *.php | Get month name |
128128
| `I18n::datetimeShort($str):string ` | *.php | Format datetime short |
129+
130+
## TOTP (Two-Factor Authentication)
131+
132+
| Function | Location | Purpose |
133+
| ---------------------------------------------- | ------------- | ---------------------- |
134+
| `Totp::generateSecret():string ` | *.php | Generate TOTP secret |
135+
| `Totp::generateURI($comp,$user,$sec):string ` | *.php | Generate QR code URI |
136+
| `Totp::verify($secret,$otp):bool ` | *.php | Verify TOTP code |
137+
138+
## Firewall
139+
140+
| Function | Location | Purpose |
141+
| ------------------------------------------- | ------------- | -------------------- |
142+
| `Firewall::start():void ` | *.php | Start rate limiting |

0 commit comments

Comments
 (0)