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

Refactor App Passwords #30

Closed julien731 closed 8 years ago

julien731 commented 8 years ago

For reasons that are stated in #29 the app passwords component needs a refactoring. What seems to be the best solution is the creation of a custom database table.

This would have multiple advantages:

The custom table should be something like this:

ID |user_id | key | type | count

If we go that way, though, it would make sense that the access log has its own custom table as well. The current access log has the following information:

It goes without saying that an upgrade routine will be necessary...