requireTotp = filter_var($require, FILTER_VALIDATE_BOOLEAN); } $issuer = env('auth.totpIssuer'); if (is_string($issuer) && $issuer !== '') { $this->totpIssuer = $issuer; } $max = env('auth.totpMaxAttempts'); if ($max !== null && $max !== '' && is_numeric($max)) { $this->totpMaxAttempts = max(1, (int) $max); } $ttl = env('auth.pending2faTtlSeconds'); if ($ttl !== null && $ttl !== '' && is_numeric($ttl)) { $this->pending2faTtlSeconds = max(60, (int) $ttl); } } }