await this._sessionCookieSet(res, undefined, 0, path);
}
await this._sessionCookieSet(res, undefined, 0, path);
}
const _scope = _fileScope('getAdminLogin');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('getAdminLogin');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('postAdminLogin');
this.logger.debug(_scope, 'called', { ctx });
ctx.errors = [];
// Check if this was an OTP entry attempt.
const _scope = _fileScope('postAdminLogin');
this.logger.debug(_scope, 'called', { ctx });
ctx.errors = [];
// Check if this was an OTP entry attempt.
* @param {String} ctx.parsedBody.otp
* @returns {Promise<Boolean>} true if otp was handled, otherwise false indicates further login processing needed
*/
* @param {String} ctx.parsedBody.otp
* @returns {Promise<Boolean>} true if otp was handled, otherwise false indicates further login processing needed
*/
if (!otp) {
// Nothing submitted, but valid state, just present otp form again, do not count as attempt.
ctx.otpState = stateBox;
if (!otp) {
// Nothing submitted, but valid state, just present otp form again, do not count as attempt.
ctx.otpState = stateBox;
this.logger.info(_scope, 'finished otp, nothing entered, request again', { ctx });
return true;
}
this.logger.info(_scope, 'finished otp, nothing entered, request again', { ctx });
return true;
}
this.logger.info(_scope, 'finished otp, invalid, request again', { ctx });
return true;
this.logger.info(_scope, 'finished otp, invalid, request again', { ctx });
return true;
const _scope = _fileScope('_localUserAuth');
// If Indiauth enabled and profile was submitted, defer to that.
const _scope = _fileScope('_localUserAuth');
// If Indiauth enabled and profile was submitted, defer to that.
this.logger.info(_scope, 'finished local, otp required', { ctx });
return true;
}
this.logger.info(_scope, 'finished local, otp required', { ctx });
return true;
}
const _scope = _fileScope('getAdminIA');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('getAdminIA');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('getAdminSettings');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('getAdminSettings');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('postAdminSettings');
this.logger.debug(_scope, 'called', { ctx });
const _scope = _fileScope('postAdminSettings');
this.logger.debug(_scope, 'called', { ctx });