uawdijnntqw1x1x1
IP : 216.73.216.119
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
cms
/
src
/
web
/
assets
/
login
/
LoginAsset.php
/
/
<?php /** * @link https://craftcms.com/ * @copyright Copyright (c) Pixel & Tonic, Inc. * @license https://craftcms.github.io/license/ */ namespace craft\web\assets\login; use Craft; use craft\validators\UserPasswordValidator; use craft\web\AssetBundle; use craft\web\assets\cp\CpAsset; use craft\web\View; /** * Asset bundle for the Login page */ class LoginAsset extends AssetBundle { /** * @inheritdoc */ public $sourcePath = __DIR__ . '/dist'; /** * @inheritdoc */ public $depends = [ CpAsset::class, ]; /** * @inheritdoc */ public $css = [ 'css/login.css', ]; /** * @inheritdoc */ public $js = [ 'login.js', ]; /** * @inheritdoc */ public function registerAssetFiles($view): void { parent::registerAssetFiles($view); if ($view instanceof View) { $view->registerTranslations('app', [ 'Check your email for instructions to reset your password.', 'Invalid email.', 'Invalid username or email.', 'Sign in', 'Password', 'Reset Password', ]); $view->registerTranslations('yii', [ '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.', '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.', ]); $view->registerJs( 'window.useEmailAsUsername = ' . (Craft::$app->getConfig()->getGeneral()->useEmailAsUsername ? 'true' : 'false') . ";\n" . 'window.minPasswordLength = ' . UserPasswordValidator::MIN_PASSWORD_LENGTH . ";\n" . 'window.maxPasswordLength = ' . UserPasswordValidator::MAX_PASSWORD_LENGTH ); } } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/cms/src/web/assets/login/LoginAsset.php