diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-02 02:03:19 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-31 17:42:36 +0200 |
commit | 60c42914d8d4ef815b239cb3b83ee682e56c5c22 (patch) | |
tree | 9c59af0633281c8422947c58e8c71706a921b320 /apps/settings/templates | |
parent | b617f3983a8152f2da018ddba6936dd8381a1f20 (diff) | |
download | nextcloud-server-60c42914d8d4ef815b239cb3b83ee682e56c5c22.tar.gz nextcloud-server-60c42914d8d4ef815b239cb3b83ee682e56c5c22.zip |
Port password settings to vue
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/settings/templates')
-rw-r--r-- | apps/settings/templates/settings/personal/security/password.php | 43 |
1 files changed, 3 insertions, 40 deletions
diff --git a/apps/settings/templates/settings/personal/security/password.php b/apps/settings/templates/settings/personal/security/password.php index f44d95c0997..bc363b15aa7 100644 --- a/apps/settings/templates/settings/personal/security/password.php +++ b/apps/settings/templates/settings/personal/security/password.php @@ -1,6 +1,7 @@ <?php /** * @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de> + * @copyright Copyright (c) 2022 Carl Schwan <carl@carlschwan.eu> * * @author Arthur Schiwon <blizzz@arthur-schiwon.de> * @@ -21,46 +22,8 @@ * */ -script('settings', [ - 'settings', - 'templates', - 'vue-settings-personal-security', -]); - if ($_['passwordChangeSupported']) { - script('settings', 'security_password'); + \OCP\Util::addScript('settings', 'vue-settings-personal-password'); } - ?> -<?php if ($_['passwordChangeSupported']) { ?> -<div id="security-password" class="section"> - <h2 class="inlineblock"><?php p($l->t('Password'));?></h2> - <span id="password-error-msg" class="msg success hidden">Saved</span> - <div class="personal-settings-setting-box personal-settings-password-box"> - <form id="passwordform" method="POST"> - <div class="input-control"> - <label for="pass1"><?php p($l->t('Current password')); ?>: </label> - <input type="password" id="pass1" name="oldpassword" - placeholder="<?php p($l->t('Your current password'));?>" - autocomplete="current-password" autocapitalize="none" autocorrect="off" /> - </div> - - <div class="personal-show-container"> - <label for="pass2" ><?php p($l->t('New password'));?>: </label> - <input type="password" id="pass2" name="newpassword" - maxlength="469" - placeholder="<?php p($l->t('Your new password')); ?>" - data-typetoggle="#personal-show" - autocomplete="new-password" autocapitalize="none" autocorrect="off" /> - <input type="checkbox" id="personal-show" class="hidden-visually" name="show" /> - <label for="personal-show" class="personal-show-label"></label> - </div> - - <div> - <input id="passwordbutton" class="primary" type="submit" value="<?php p($l->t('Change password')); ?>" /> - </div> - </form> - </div> - <span class="msg"></span> -</div> -<?php } ?> +<div id="security-password"></div> |