twofactorauth
twofactorauth copied to clipboard
Update int page
I've reworked the regions.rb script to not display sites if:
- They have a regions element
- All of the regions in the regions-element have their own page on 2fa.directory (i.e. "selectable")
That way, people from regions without a dedicated page on 2fa.directory don't see sites only relevant for another region. i.e. if you're from Luxembourg the banking category isn't filled with U.S. credit unions.
I also replaced 2fa.directory/index.html with a simple HTML-page linking to the international page. This page should never be displayed to users but if it is shown, we're now more likely to notice that something is wrong with the redirect script.
Unfortunately, this also means that a specific site may not come up in the search results if the user is not on a matching region. At least with int, this was guaranteed. I'm afraid this is a step in the wrong direction. (Handling regions like a search term would be way easier IMHO.)
Alright I've reverted that change. Now all sites are displayed on the int page regardless of relevance.
I did however do some cleanup of the regions.rb script and the change to 2fa.directory/index.html is still included.