• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/authentication/internal/userpasswordtable.php
  • Класс: BitrixMainAuthenticationInternalUserPasswordTable
  • Вызов: UserPasswordTable::passwordExpired
static function passwordExpired($userId, $days)
{
	$date = new MainTypeDateTime();
	$date->add("-{$days}D");

	$prevPassword = static::query()
		->where("USER_ID", $userId)
		->where("DATE_CHANGE", ">", $date)
		->setLimit(1)
		->fetch();

	return !$prevPassword;
}