Issues (496)

templates/authenticate.php (1 issue)

Languages
Labels
Severity
1
<?php
2
/**
3
 * Analytics
4
 *
5
 * SPDX-FileCopyrightText: 2019-2022 Marcel Scherello
6
 * SPDX-License-Identifier: AGPL-3.0-or-later
7
 */
8
9
/** @var $_ array */
10
/** @var $l \OCP\IL10N */
11
12
use OCP\Util;
0 ignored issues
show
The type OCP\Util was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
14
Util::addStyle('analytics', 'authenticate');
15
Util::addScript('analytics', 'authenticate');
16
?>
17
<form method="POST">
18
    <fieldset class="warning">
19
        <?php if (!$_['wrongpw']) { ?>
20
            <div class="warning-info"><?php p($l->t('This report is password protected')); ?></div>
21
        <?php } else { ?>
22
            <div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
23
        <?php } ?>
24
        <p>
25
            <label for="password" class="infield"><?php p($l->t('Password')); ?></label>
26
            <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>"/>
27
            <input type="password" name="password" id="password"
28
                   placeholder="<?php p($l->t('Password')); ?>" value=""
29
                   autocomplete="off" autocapitalize="off" autocorrect="off"
30
                   autofocus/>
31
            <input type="submit" id="password-submit"
32
                   class="svg icon-confirm input-button-inline" value="" disabled="disabled"/>
33
        </p>
34
    </fieldset>
35
</form>
36