Table of Contents

Method IsValidCode

Namespace
DisCatSharp.Extensions.TwoFactorCommands
Assembly
DisCatSharp.Extensions.TwoFactorCommands.dll

IsValidCode(ulong, string)

Checks whether the two factor auth code is valid for given user id.

public bool IsValidCode(ulong user, string code)

Parameters

user ulong

The user id entering the code.

code string

The code to check.

Returns

bool

Whether the code is valid.