Postponed
Project:
TFA Basic plugins
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 May 2015 at 21:06 UTC
Updated:
30 May 2019 at 10:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
drummComment #2
coltraneLinking to https://www.drupal.org/node/2481253 since it has a similar purpose, perhaps could be unified.
Comment #3
pjcdawkins commentedJust so long as this is entirely optional (based on permissions?), as it weakens the point of TFA.
Comment #4
coltraneYes, it'll be an optional plugin (as well as per role) and it can form alter the admin page so as to warn about the security risk of enabling.
Comment #5
banviktor commentedHere is a solution which uses the link generation algorithm from my #2481253: Allow Drush uli login command to bypass TFA patches (=> valid until login or 24 hours - configurable). The plugin is optional and when enabled a set of roles can be selected that can't use this plugin (defaults to administrator).
I had to extract the TFA disable process into tfa_basic_disable_tfa($account) to avoid code duplication.
Comment #6
banviktor commentedShould the default excluded roles be everything but the authenticated role?
Comment #7
banviktor commentedDefault excluded roles are every role except authenticated. Also a watchdog event is recorded on a succesfull reset link access.
Comment #8
banviktor commentedIt wasn't such a bright idea working on the 2 issues simultaneously while sharing some of the solution's code. I will get back to this when #2481253: Allow Drush uli login command to bypass TFA is committed.
Comment #9
banviktor commentedKeeping up with the changes made in #2481253: Allow Drush uli login command to bypass TFA.
Also added a
tfa_logout()line in TfaBasicReset::validateForm().Comment #10
banviktor commentedPostponing until #2481253: Allow Drush uli login command to bypass TFA gets committed.
Comment #11
Leeteq commentedComment #12
edvanleeuwenTested and verified in combination with #2481253: Allow Drush uli login command to bypass TFA. Tried giving that a bump to be committed.