Skip to content
This repository was archived by the owner on Nov 12, 2023. It is now read-only.
This repository was archived by the owner on Nov 12, 2023. It is now read-only.

Reuse of verification codes should be disabled #2

Description

@godwinpinto

Feature
TOTP by nature allows you to use the code any no. of times since it is valid for 30 seconds. However, this will lead to risks and should be not usable once successfully verified.

Solution
Store code in hashed format in db post successful verification, store the 'n' times field in system and validate the if it is among them. Appropriate message should also be shown if it is among them to try after 'X' seconds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions