Documentation

RecoveryCodesTable

RecoveryCodesTable class handles table with recovery codes.

Method Description Available from version
clearByUser Deletes all saved recovery codes for specified users.
getMap Returns list of fields with types.
getTableName Returns database table name for an entity.
regenerateCodes Generates new recovery codes for specified users.
useCode "Uses" recovery code for a user.

Recovery code table

Fields Description Type Required
ID Identifier.int Y
USER_ID User ID.int Y
CODE Recovery code. varchar(255) Y
USED Code use indicator. char(1) N
USING_DATE Date of use. datetime N
USING_IP IP address that used the code. varchar(255) N


© «Bitrix24», 2001-2024
Up