mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-22 07:32:31 +02:00
refactor: change variable from isDisableOTP to isEnableOTP
This commit is contained in:
@@ -19,8 +19,8 @@ export default async function getDocument(request) {
|
||||
query.notEqualTo('IsArchive', true);
|
||||
const res = await query.first({ useMasterKey: true });
|
||||
if (res) {
|
||||
const IsDisableOTP = res?.get('IsDisableOTP') || false;
|
||||
if (IsDisableOTP) {
|
||||
const IsEnableOTP = res?.get('IsEnableOTP') || false;
|
||||
if (!IsEnableOTP) {
|
||||
return res;
|
||||
} else {
|
||||
if (request?.headers?.['sessiontoken']) {
|
||||
|
||||
Reference in New Issue
Block a user