mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
This patch wil warn the user of the consequences when resetting the password and requires checking a checkbox (as we had in the past) to reset a password. Furthermore I updated the code to use our new classes and added some unit tests for it 👯 Fixes https://github.com/owncloud/core/issues/11438
17 lines
672 B
PHP
17 lines
672 B
PHP
<?php
|
|
/** @var array $_ */
|
|
/** @var $l OC_L10N */
|
|
style('lostpassword', 'resetpassword');
|
|
script('core', 'lostpassword');
|
|
?>
|
|
|
|
<form action="<?php print_unescaped($_['link']) ?>" id="reset-password" method="post">
|
|
<fieldset>
|
|
<p>
|
|
<label for="password" class="infield"><?php p($l->t('New password')); ?></label>
|
|
<input type="password" name="password" id="password" value="" placeholder="<?php p($l->t('New Password')); ?>" required />
|
|
<img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/>
|
|
</p>
|
|
<input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?>" />
|
|
</fieldset>
|
|
</form>
|