Skip to content

Commit 1558029

Browse files
Updated README.me
1 parent 2259b9b commit 1558029

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ if ($KeyAuthApp->license("licenseKeyHere")) {
113113
}
114114
```
115115

116+
## **Enable 2fa (Two Factor Authentication)**
117+
When you first call the function, it will generate the authentication code, you will put that into your authentication app and it will generate a 6 digit code. Use ProtonPass or Bitwarden if you don't have anything else.
118+
119+
After you get the 6 digit code, you will need to run the function again to enable 2fa.
120+
121+
```php
122+
$KeyAuthApp->enable2fa($_POST['2facode']);
123+
```
124+
125+
## **Disable 2fa (Two Factor Authentication)**
126+
```php
127+
$KeyAuthApp->disable2fa($_POST['2facode']);
128+
```
129+
116130
## **User Data**
117131

118132
Show information for current logged-in user.

0 commit comments

Comments
 (0)