Skip to content
/ 2FA Public

[In-dev] Two-factor authentication for your PocketMine-MP (PMMP) server. Currently there are no documentations or doc comments.

License

Notifications You must be signed in to change notification settings

Muqsit/2FA

Repository files navigation

2FA

Secure your server with Two-step verification.

Installing

  • Download the compiled .phar file from Poggit-CI and upload it to your server's plugins/ folder.
  • Make sure you have PHP's graphics design library (gd) installed with libpng.
./configure
  --with-gd \
  --with-png-dir \
  
//If you are on Linux, you will need to install the C libraries before installing php-gd.
apt-get install libgd-dev
apt-get install libpng-dev

//Windows users can google up the required .dll files. Read http://php.net/manual/en/image.installation.php
  • Start the server and then stop the server.
  • Open plugins/2FA/config.yml and set '2FATitle' to your server's name.

Usage

  • Download a 2FA app (lets assume you chose Google Authenticator)
  • Execute /2fa to obtain your 2FA barcode along with the secret.
  • Click the + sign (mostly located at the bottom right) in Google Authenticator.
  • You have two options. Either manually 'Enter a provided key' or 'Scan a barcode'. If you want to enter a provided key, enter the 'Secret Key'. If you want to scan a barcode, scan the barcode given to you on the map.
  • Once done, you'll find a slot on your Google Authenticator App. It will print out a random 6 digit number and refresh it every 30 seconds or so. The random 6 digit number is your 2FA code. Execute /2fa [6-digit-code].
  • Congratulations! You have set up 2FA! Now everytime you join the server, you'll have to type the 6-digit 2FA code that keeps on changing from time to time on your 2FA app. You can remove 2FA by executing /2fa remove or by entering the recovery codes that were provided to you on successfully linking your 2FA device.

Live test

Join play.cosmicpe.me:19132 to live-test this a very slightly-modified version of this plugin.

About

[In-dev] Two-factor authentication for your PocketMine-MP (PMMP) server. Currently there are no documentations or doc comments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages