Jump to content

Two Factor Authentication 2FA


ygerdel

Recommended Posts

Hi,

I want to add optional two-factor authentication during login into my Delphi win32 application.
Using: Delphi 10.1 Berlin Enterprise
User logs in using normal username and password. On his mobile phone he have the Google Authenticator application, which is the code that he needs to enter in the application.

What would be the easiest way to set this up?
A very basic example would be appreciated.

 

Thanks.

Link to comment
Share on other sites

  • 4 weeks later...

Hi

I use a simple solution. My login screen has 3 fields :

- username
- password
- security code

From all my users i have a mobile Phone number. When the user logins in then :

- i create a random number and save it in a database for this user
- i send a tekst sms with this generated number to the users mobile Phone
- the user enters this number in the field 'security code'
- after entering the security code i check if security code = as stored number in database
- if there is a match the login procedure is succesfull

 

ps for sending sms i use bulksms.com, it's quite easy to send sms

  • Like 1
  • Upvote 1
Link to comment
Share on other sites

  • 8 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...