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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...