Problem: If you enable two factor, it will use cache to store codes it generates. Issue: If you have multiserver environment, it would not find the code on the other servers. Not a good solution: One can configure Redis for caching, but there is no way to specify for cache just to use redis for that cache! Better solution: Cache in database, it would be nice if mongodb database was supported for caching.
Any other ideas?