In this example, we will use Google Authenticator Application to Authenticate our application. Two-factor authentication also protects the application from Brute force attack.
Google is introducing a new prompt that you can tap on your phone to approve login requests. It's very similar to how Twitter's two-factor authentication works, generating a notification that you accept from a phone and it approves the login attempt.
For Step to step description and Source Code Visit: Click here

