{"id":18991259,"url":"https://github.com/mt-mods/otp","last_synced_at":"2026-02-09T05:35:22.831Z","repository":{"id":103957569,"uuid":"594376092","full_name":"mt-mods/otp","owner":"mt-mods","description":"(t)otp mod for minetest","archived":false,"fork":false,"pushed_at":"2024-08-06T09:58:06.000Z","size":720,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T00:16:49.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mt-mods.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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,"zenodo":null}},"created_at":"2023-01-28T11:04:03.000Z","updated_at":"2024-08-06T09:58:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"88ce7a68-ff44-4667-8bad-c303bb2e2565","html_url":"https://github.com/mt-mods/otp","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/mt-mods%2Fotp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fotp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fotp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mt-mods%2Fotp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mt-mods","download_url":"https://codeload.github.com/mt-mods/otp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250234295,"owners_count":21396967,"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":[],"created_at":"2024-11-08T17:13:17.771Z","updated_at":"2026-02-09T05:35:22.787Z","avatar_url":"https://github.com/mt-mods.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# (T)OTP mod for minetest\n\n* State: **Stable**\n\n# Overview\n\nLets security-aware players use the `/otp_enable` command to protect their account with a second factor.\n\nPlayers that have the OTP enabled have to enter a verification code upon joining the game.\n\n# OTP Authenticator apps\n\n* https://freeotp.github.io/\n* https://github.com/helloworld1/FreeOTPPlus\n\n# Screenshots\n\nOTP verification form\n![](./screenshot1.png)\n\nOTP Setup form\n![](./screenshot2.png)\n\n# Temporary privilege revocation\n\nAll of the privileges get revoked when logging in with the otp enabled (until the proper code is entered).\nSome exceptions:\n* `fly` (otherwise the player would literally fall from the sky)\n* `noclip`\n\nTo disable revokation on custom privs the field `otp_keep` can be set to true on the definition:\n```lua\nminetest.register_privilege(\"my_super_important_priv\", {\n    description = \"something something\",\n    otp_keep = true\n})\n```\n\n# Settings\n\n* `otp.authenticator_image` The image to use in the QR code for the otp app (defaults to \"https://raw.githubusercontent.com/minetest/minetest/master/misc/minetest-xorg-icon-128.png\")\n* `otp.issuer` The issuer name, defaults to server name, address or just \"Minetest\"\n\n# Links / References\n\n* https://en.wikipedia.org/wiki/Time-based_one-time_password\n* https://en.wikipedia.org/wiki/HMAC-based_one-time_password\n* https://en.wikipedia.org/wiki/HMAC\n* https://github.com/google/google-authenticator/wiki/Key-Uri-Format\n\n# Chatcommands\n\n* `/otp_enable` Starts the OTP onboarding process\n* `/otp_disable` Disables the OTP Login\n\n# Privileges\n\n* `otp_enabled` Players with this privilege have to verify the OTP Code upon login (automatically granted on successful `/otp_enable`)\n\n# License\n\n* Code: `MIT`\n* Textures: `CC-BY-SA 3.0`\n* \"basexx.lua\" `MIT` https://github.com/aiq/basexx/blob/master/lib/basexx.lua\n* \"qrencode.lua\" `BSD` https://github.com/speedata/luaqrcode/blob/master/qrencode.lua\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-mods%2Fotp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmt-mods%2Fotp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmt-mods%2Fotp/lists"}