{"action":"created","issue":{"url":"https://api.github.com/repos/akeeba/loginguard/issues/44","repository_url":"https://api.github.com/repos/akeeba/loginguard","labels_url":"https://api.github.com/repos/akeeba/loginguard/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/akeeba/loginguard/issues/44/comments","events_url":"https://api.github.com/repos/akeeba/loginguard/issues/44/events","html_url":"https://github.com/akeeba/loginguard/issues/44","id":317513558,"number":44,"title":"[enhancement] allow to delete and not use backup codes","user":{"login":"Aditza2015","id":16319504,"avatar_url":"https://avatars0.githubusercontent.com/u/16319504?v=4","gravatar_id":"","url":"https://api.github.com/users/Aditza2015","html_url":"https://github.com/Aditza2015","followers_url":"https://api.github.com/users/Aditza2015/followers","following_url":"https://api.github.com/users/Aditza2015/following{/other_user}","gists_url":"https://api.github.com/users/Aditza2015/gists{/gist_id}","starred_url":"https://api.github.com/users/Aditza2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aditza2015/subscriptions","organizations_url":"https://api.github.com/users/Aditza2015/orgs","repos_url":"https://api.github.com/users/Aditza2015/repos","events_url":"https://api.github.com/users/Aditza2015/events{/privacy}","received_events_url":"https://api.github.com/users/Aditza2015/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T07:43:01Z","updated_at":"2018-04-25T10:07:26Z","closed_at":"2018-04-25T10:07:26Z","author_association":"NONE","body":"Please allow us to delete and NOT use any backup codes if at least two other 2FA methods or devices are configured.\r\n\r\n### Expected result\r\nAdministrators are allowed to delete any existing backup codes and not use them at all when there are already two or more other 2FA methods enabled. (in my case, i have multiple U2F keys and YK4 OTP keys).\r\nWhen the backup codes are not active, if the deletion of a 2FA method would result in less than two methods remaining active after the removal then do not allow the deletion of 2FA methods.\r\n\r\n\r\n### Actual result\r\nbackup codes are mandatory and are generated automatically even if i don't want them.\r\nLoginGuard won't let me delete the backup codes that were generated and won't let me prevent the creation of new ones.\r\n\r\n\r\n### System information (as much as possible)\r\n* **Joomla! version**: 3.8.7\r\n* **LoginGuard version**: 2.0.1\r\n(i don't think the other info is needed)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/akeeba/loginguard/issues/comments/384234643","html_url":"https://github.com/akeeba/loginguard/issues/44#issuecomment-384234643","issue_url":"https://api.github.com/repos/akeeba/loginguard/issues/44","id":384234643,"user":{"login":"nikosdion","id":256041,"avatar_url":"https://avatars0.githubusercontent.com/u/256041?v=4","gravatar_id":"","url":"https://api.github.com/users/nikosdion","html_url":"https://github.com/nikosdion","followers_url":"https://api.github.com/users/nikosdion/followers","following_url":"https://api.github.com/users/nikosdion/following{/other_user}","gists_url":"https://api.github.com/users/nikosdion/gists{/gist_id}","starred_url":"https://api.github.com/users/nikosdion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikosdion/subscriptions","organizations_url":"https://api.github.com/users/nikosdion/orgs","repos_url":"https://api.github.com/users/nikosdion/repos","events_url":"https://api.github.com/users/nikosdion/events{/privacy}","received_events_url":"https://api.github.com/users/nikosdion/received_events","type":"User","site_admin":false},"created_at":"2018-04-25T10:07:26Z","updated_at":"2018-04-25T10:07:26Z","author_association":"OWNER","body":"This is never going to happen. Emergency backup codes are exactly that. To be used in an emergency. When you don't have access to your other methods. Removing them is like removing the seatbelts of a car. Sure, the car runs fine but if you get into a minor accident you die."}}
{"actor":{"display_login":"nikosdion"}}