Generalize 2fa methods using icons

Here's the code represent implementations with icons only. This is an alternative to PR #333.

![Imgur](http://i.imgur.com/RH6UwAy.png)