julien731 / AuthPress

Add 2-factor authentication to your WordPress blog site.
https://wordpress.org/plugins/wp-google-authenticator/
GNU General Public License v3.0
16 stars 11 forks source link

Introduce 2FA User Class #29

Closed julien731 closed 8 years ago

julien731 commented 8 years ago

There are quite a few things happening for a user that has 2FA enabled. At the moment, the code is mostly procedural, which works well, but having a user object could make things easier. It would also give a clearer overview of the user meta data and make it easier to retrieve pieces of information.

julien731 commented 8 years ago

Problem: in order for this to make sense, I need to abstract all user related functions in the class. However, the way app passwords are currently stored is kind of crappy. A refactoring of the app passwords component seems inevitable.