2017-05-17 12:12:55 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @copyright Copyright (c) 2017 Arthur Schiwon <blizzz@arthur-schiwon.de>
|
|
|
|
*
|
|
|
|
* @author Arthur Schiwon <blizzz@arthur-schiwon.de>
|
|
|
|
*
|
|
|
|
* @license GNU AGPL version 3 or any later version
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2017-06-16 13:34:16 +00:00
|
|
|
|
2017-05-17 12:12:55 +00:00
|
|
|
script('settings', [
|
2019-09-01 17:37:43 +00:00
|
|
|
'settings',
|
2018-09-27 12:07:48 +00:00
|
|
|
'templates',
|
2019-02-26 18:43:59 +00:00
|
|
|
'vue-settings-personal-security',
|
2017-05-17 12:12:55 +00:00
|
|
|
]);
|
|
|
|
|
2020-04-10 12:19:56 +00:00
|
|
|
if ($_['passwordChangeSupported']) {
|
2018-08-07 15:41:01 +00:00
|
|
|
script('settings', 'security_password');
|
2018-06-29 11:01:22 +00:00
|
|
|
}
|
|
|
|
|
2017-05-17 12:12:55 +00:00
|
|
|
?>
|
2020-04-10 12:19:56 +00:00
|
|
|
<?php if ($_['passwordChangeSupported']) { ?>
|
2018-06-29 11:01:22 +00:00
|
|
|
<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">
|
2022-08-11 08:15:40 +00:00
|
|
|
<form id="passwordform" method="POST">
|
|
|
|
<div class="input-control">
|
|
|
|
<label for="pass1"><?php p($l->t('Current password')); ?>: </label>
|
2018-06-29 11:01:22 +00:00
|
|
|
<input type="password" id="pass1" name="oldpassword"
|
2022-08-25 12:25:56 +00:00
|
|
|
placeholder="<?php p($l->t('Your current password'));?>"
|
2021-07-13 15:11:48 +00:00
|
|
|
autocomplete="current-password" autocapitalize="none" autocorrect="off" />
|
2022-08-11 08:15:40 +00:00
|
|
|
</div>
|
2018-06-29 11:01:22 +00:00
|
|
|
|
2022-08-11 08:15:40 +00:00
|
|
|
<div class="personal-show-container">
|
|
|
|
<label for="pass2" ><?php p($l->t('New password'));?>: </label>
|
|
|
|
<input type="password" id="pass2" name="newpassword"
|
|
|
|
maxlength="469"
|
2022-08-25 12:25:56 +00:00
|
|
|
placeholder="<?php p($l->t('Your new password')); ?>"
|
2022-08-11 08:15:40 +00:00
|
|
|
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>
|
2018-06-29 11:01:22 +00:00
|
|
|
|
2022-08-11 08:15:40 +00:00
|
|
|
<div>
|
|
|
|
<input id="passwordbutton" class="primary" type="submit" value="<?php p($l->t('Change password')); ?>" />
|
|
|
|
</div>
|
|
|
|
</form>
|
2018-06-29 11:01:22 +00:00
|
|
|
</div>
|
|
|
|
<span class="msg"></span>
|
|
|
|
</div>
|
2018-08-07 15:41:01 +00:00
|
|
|
<?php } ?>
|