@@ -22,13 +22,13 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | |
| 24 | 24 | script('settings', [ |
| 25 | - 'templates', |
|
| 26 | - 'vue-settings-personal-security', |
|
| 25 | + 'templates', |
|
| 26 | + 'vue-settings-personal-security', |
|
| 27 | 27 | ]); |
| 28 | 28 | |
| 29 | 29 | if($_['passwordChangeSupported']) { |
| 30 | - script('settings', 'security_password'); |
|
| 31 | - script('jquery-showpassword'); |
|
| 30 | + script('settings', 'security_password'); |
|
| 31 | + script('jquery-showpassword'); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | ?> |
@@ -70,16 +70,16 @@ discard block |
||
| 70 | 70 | <?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?> |
| 71 | 71 | <li> |
| 72 | 72 | <?php |
| 73 | - /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ |
|
| 74 | - $provider = $data['provider']; |
|
| 75 | - if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { |
|
| 76 | - $icon = $provider->getDarkIcon(); |
|
| 77 | - } else { |
|
| 78 | - $icon = image_path('core', 'actions/password.svg'); |
|
| 79 | - } |
|
| 80 | - /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ |
|
| 81 | - $settings = $data['settings']; |
|
| 82 | - ?> |
|
| 73 | + /** @var \OCP\Authentication\TwoFactorAuth\IProvidesPersonalSettings $provider */ |
|
| 74 | + $provider = $data['provider']; |
|
| 75 | + if ($provider instanceof \OCP\Authentication\TwoFactorAuth\IProvidesIcons) { |
|
| 76 | + $icon = $provider->getDarkIcon(); |
|
| 77 | + } else { |
|
| 78 | + $icon = image_path('core', 'actions/password.svg'); |
|
| 79 | + } |
|
| 80 | + /** @var \OCP\Authentication\TwoFactorAuth\IPersonalProviderSettings $settings */ |
|
| 81 | + $settings = $data['settings']; |
|
| 82 | + ?> |
|
| 83 | 83 | <h3> |
| 84 | 84 | <img class="two-factor-provider-settings-icon" src="<?php p($icon) ?>" alt=""> |
| 85 | 85 | <?php p($provider->getDisplayName()) ?> |
@@ -26,25 +26,25 @@ discard block |
||
| 26 | 26 | 'vue-settings-personal-security', |
| 27 | 27 | ]); |
| 28 | 28 | |
| 29 | -if($_['passwordChangeSupported']) { |
|
| 29 | +if ($_['passwordChangeSupported']) { |
|
| 30 | 30 | script('settings', 'security_password'); |
| 31 | 31 | script('jquery-showpassword'); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | ?> |
| 35 | -<?php if($_['passwordChangeSupported']) { ?> |
|
| 35 | +<?php if ($_['passwordChangeSupported']) { ?> |
|
| 36 | 36 | <div id="security-password" class="section"> |
| 37 | - <h2 class="inlineblock"><?php p($l->t('Password'));?></h2> |
|
| 37 | + <h2 class="inlineblock"><?php p($l->t('Password')); ?></h2> |
|
| 38 | 38 | <span id="password-error-msg" class="msg success hidden">Saved</span> |
| 39 | 39 | <div class="personal-settings-setting-box personal-settings-password-box"> |
| 40 | 40 | <form id="passwordform"> |
| 41 | 41 | <label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label> |
| 42 | 42 | <input type="password" id="pass1" name="oldpassword" |
| 43 | - placeholder="<?php p($l->t('Current password'));?>" |
|
| 43 | + placeholder="<?php p($l->t('Current password')); ?>" |
|
| 44 | 44 | autocomplete="off" autocapitalize="none" autocorrect="off" /> |
| 45 | 45 | |
| 46 | 46 | <div class="personal-show-container"> |
| 47 | - <label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label> |
|
| 47 | + <label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label> |
|
| 48 | 48 | <input type="password" id="pass2" name="newpassword" |
| 49 | 49 | placeholder="<?php p($l->t('New password')); ?>" |
| 50 | 50 | data-typetoggle="#personal-show" |
@@ -61,11 +61,11 @@ discard block |
||
| 61 | 61 | <?php } ?> |
| 62 | 62 | |
| 63 | 63 | <div id="two-factor-auth" class="section"> |
| 64 | - <h2><?php p($l->t('Two-Factor Authentication'));?></h2> |
|
| 64 | + <h2><?php p($l->t('Two-Factor Authentication')); ?></h2> |
|
| 65 | 65 | <a target="_blank" rel="noreferrer noopener" class="icon-info" |
| 66 | - title="<?php p($l->t('Open documentation'));?>" |
|
| 66 | + title="<?php p($l->t('Open documentation')); ?>" |
|
| 67 | 67 | href="<?php p(link_to_docs('user-2fa')); ?>"></a> |
| 68 | - <p class="settings-hint"><?php p($l->t('Use a second factor besides your password to increase security for your account.'));?></p> |
|
| 68 | + <p class="settings-hint"><?php p($l->t('Use a second factor besides your password to increase security for your account.')); ?></p> |
|
| 69 | 69 | <ul> |
| 70 | 70 | <?php foreach ($_['twoFactorProviderData']['providers'] as $data) { ?> |
| 71 | 71 | <li> |