Jump to content
uniGUI Discussion Forums

Two Factor Authentication 2FA

Recommended Posts


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.



Share this post

Link to post
Share on other sites


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

Share this post

Link to post
Share on other sites