Skip to content

This is a technical challenge to implement an email OTP module to be used for an enterprise application. I chose to use Ruby, due to development speed under a tight deadline.

Notifications You must be signed in to change notification settings

thomami244/RubyEmaiOTPTechnicalChallenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

RubyEmailOTPTechnicalChallenge

This is a response to a technical challenge to implement an email OTP module to be used for an enterprise application.

I could use any language, and chose to use Ruby due to development speed under a tight deadline.

In order to exectute the file using the command line:

  1. Save the file to your local hard disk
  2. Download Ruby compiler
  3. Execute the file by typing "ruby [path of the file on your local hard disk]"
  • note that this program does not send emails, which is assumed to be done in another enterprise module. This module is solely responsible for generating and testing an OTP sent by email.

Features:

  • A random 6 digit OTP is sent to a user that enters a "@gmail.com" email account (you can change the email required in the regex statement)
  • The user is logged out after 10 failed attempts to input OTP
  • The OTP expires after 1 minute

Success:

image

A random 6 digit OTP is sent to a user that enters an "@gmail.com" email account:

image

The user is logged out after 10 failed attempts to input OTP:

image

The user is logged out after 1 minute:

image

About

This is a technical challenge to implement an email OTP module to be used for an enterprise application. I chose to use Ruby, due to development speed under a tight deadline.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages