{"id":15698474,"url":"https://github.com/muqsit/2fa","last_synced_at":"2025-08-05T12:27:33.030Z","repository":{"id":92516665,"uuid":"105921694","full_name":"Muqsit/2FA","owner":"Muqsit","description":"[In-dev] Two-factor authentication for your PocketMine-MP (PMMP) server. Currently there are no documentations or doc comments.","archived":false,"fork":false,"pushed_at":"2017-10-06T08:37:14.000Z","size":45,"stargazers_count":5,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-09T01:17:32.186Z","etag":null,"topics":["2fa","mfa","pmmp","pocketmine-mp","security"],"latest_commit_sha":null,"homepage":"https://poggit.pmmp.io/ci/Muqsit/2FA","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Muqsit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-05T17:51:49.000Z","updated_at":"2024-10-30T16:23:51.000Z","dependencies_parsed_at":"2023-03-01T18:45:17.169Z","dependency_job_id":null,"html_url":"https://github.com/Muqsit/2FA","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muqsit%2F2FA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muqsit%2F2FA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muqsit%2F2FA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Muqsit%2F2FA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Muqsit","download_url":"https://codeload.github.com/Muqsit/2FA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253171289,"owners_count":21865299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2fa","mfa","pmmp","pocketmine-mp","security"],"created_at":"2024-10-03T19:28:30.903Z","updated_at":"2025-05-09T01:17:46.502Z","avatar_url":"https://github.com/Muqsit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 2FA\u003cimg src=\"https://github.com/Muqsit/2FA/blob/master/GoogleAuthenticator.png\" width=\"60\" height=\"60\" align=\"right\"\u003e\u003c/img\u003e\nSecure your server with Two-step verification.\n\n## Installing\n- Download the compiled `.phar` file from Poggit-CI and upload it to your server's `plugins/` folder.\n- Make sure you have PHP's graphics design library (`gd`) installed with libpng.\n```bash\n./configure\n  --with-gd \\\n  --with-png-dir \\\n  \n//If you are on Linux, you will need to install the C libraries before installing php-gd.\napt-get install libgd-dev\napt-get install libpng-dev\n\n//Windows users can google up the required .dll files. Read http://php.net/manual/en/image.installation.php\n```\n- Start the server and then stop the server.\n- Open plugins/2FA/config.yml and set '2FATitle' to your server's name.\n\n## Usage\n- Download a 2FA app (lets assume you chose Google Authenticator)\n  - [Google Play](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2\u0026hl=en)\n  - [App Store (iOS)](https://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8)\n  - [Windows Phone](https://www.microsoft.com/en-us/store/p/microsoft-authenticator/9nblgggzmcj6)\n  - [Blackberry](https://appworld.blackberry.com/webstore/content/29401059/?lang=en)\n- Execute `/2fa` to obtain your 2FA barcode along with the secret.\n- Click the **+** sign (mostly located at the bottom right) in Google Authenticator.\n- 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.\n- 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]_.\n- 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.\n\n## Live test\nJoin `play.cosmicpe.me:19132` to live-test this a very slightly-modified version of this plugin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuqsit%2F2fa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuqsit%2F2fa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuqsit%2F2fa/lists"}