Skip to content

[Feature Request] Restart an existing window #73

@DashRader

Description

@DashRader

Unless I am missing something, I would like to manually restart the timer upon a successful verification. I tried using WindowStart() but it didn't seem to do anything. I am using DUO and the timer does not reset to 30 `seconds.

        public static bool VerifyTotp(string base32Secret, string userCode)
        {
            var totp = new Totp(Base32Encoding.ToBytes(base32Secret));

            if (totp.VerifyTotp(userCode, out _, VerificationWindow.RfcSpecifiedNetworkDelay))
            {
                totp.WindowStart();
                return true;
            }
            return false;

The documation does not elaborate on WindowStart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions