You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a quick thought: aren't the management commands a bit ambigous? disable and status might very well refer to pretty much anything on a Django install. I'd argue that a better naming would be something like:
On a side note, an enable command would be useful as well, as a way of enforcing two factor auth for all users from day one. Would that even be possible (given that an admin would supply phone numbers, hand out codes etc.)? I'd be happy to submit at PR if that's the case.
The text was updated successfully, but these errors were encountered:
Hi @dessibelle thanks for you response. The management commands are listed in their own namespace when listed with help:
[two_factor]
disable
status
Although using them might seem a little awkward indeed, and your proposal looks like a good solution.
An enable command would require providing the second factor from the command line. Indeed, a phone number for making calls or sending texts would be the most simple solution. I don't think there would be something from preventing you to do so. I think it would be a nice addition, so feel free to submit a PR. A full PR would also require a small unit test, see also the current test suite.
Yes, it certainly looks nice when viewing the help section. I guess the better solution would really be if django would honor the app namespace, instead of having to pre-/suffix each command with the app name.
Cool, I'll have a look at an enable command in the upcoming days.
Django doesn't namespace the commands, which make them
look ambiguous when used. Including `two_factor_` in the name
makes them unambiguous.
See also #77.
Bouke
changed the title
Management command names
Management command for enabling two-factor for a user
Apr 17, 2015
Just a quick thought: aren't the management commands a bit ambigous?
disable
andstatus
might very well refer to pretty much anything on a Django install. I'd argue that a better naming would be something like:On a side note, an
enable
command would be useful as well, as a way of enforcing two factor auth for all users from day one. Would that even be possible (given that an admin would supply phone numbers, hand out codes etc.)? I'd be happy to submit at PR if that's the case.The text was updated successfully, but these errors were encountered: