33 lines
1.8 KiB
PHP
33 lines
1.8 KiB
PHP
<?php if ($_['requested']): ?>
|
|
<div class="success"><p>
|
|
<?php
|
|
print_unescaped($l->t('The link to reset your password has been sent to your email.<br>If you do not receive it within a reasonable amount of time, check your spam/junk folders.<br>If it is not there ask your local administrator .'));
|
|
?>
|
|
</p></div>
|
|
<?php else: ?>
|
|
<form action="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?>" method="post">
|
|
<fieldset>
|
|
<?php if ($_['error']): ?>
|
|
<div class="errors"><p>
|
|
<?php print_unescaped($l->t('Request failed!<br>Did you make sure your email/username was right?')); ?>
|
|
</p></div>
|
|
<?php endif; ?>
|
|
<?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?>
|
|
<p class="infield">
|
|
<input type="text" name="user" id="user" placeholder="" value="" autocomplete="off" required autofocus />
|
|
<label for="user" class="infield"><?php print_unescaped($l->t( 'Username' )); ?></label>
|
|
<img class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?>" alt=""/>
|
|
<?php if ($_['encrypted']): ?>
|
|
<br /><br />
|
|
<?php print_unescaped($l->t('Your files seems to be encrypted. If you didn\'t have enabled the recovery key there will be no way to get your data back once the password was resetted. If you are not sure what to do, please contact your administrator first before continue. Do you really want to continue?')); ?><br />
|
|
<input type="checkbox" name="continue" value="Yes" />
|
|
<?php print_unescaped($l->t('Yes, I really want to reset my password now')); ?><br/><br/>
|
|
<?php else: ?>
|
|
<input type="checkbox" name="noEncryption" value="Yes" checked />
|
|
<?php endif; ?>
|
|
</p>
|
|
<input type="submit" id="submit" value="<?php print_unescaped($l->t('Request reset')); ?>" />
|
|
</fieldset>
|
|
</form>
|
|
<?php endif; ?>
|