2013-04-09 00:41:15 +04:00
< ? php if ( $_ [ 'requested' ]) : ?>
2013-04-08 09:11:35 +04:00
< div class = " success " >< p >
< ? php
2013-04-23 14:36:27 +04:00
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 .' ));
2013-04-08 09:11:35 +04:00
?>
</ p ></ div >
< ? php else : ?>
2013-04-23 14:36:27 +04:00
< form action = " <?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?> " method = " post " >
2013-04-08 09:11:35 +04:00
< fieldset >
2011-08-29 22:37:18 +04:00
< ? php if ( $_ [ 'error' ]) : ?>
2013-04-08 09:11:35 +04:00
< div class = " errors " >< p >
2013-04-23 14:36:27 +04:00
< ? php print_unescaped ( $l -> t ( 'Request failed!<br>Did you make sure your email/username was right?' )); ?>
2013-04-08 09:11:35 +04:00
</ p ></ div >
2011-08-29 22:37:18 +04:00
< ? php endif ; ?>
2013-04-24 16:17:13 +04:00
< ? php print_unescaped ( $l -> t ( 'You will receive a link to reset your password via Email.' )); ?>
2011-10-03 16:41:55 +04:00
< p class = " infield " >
2013-03-05 01:11:57 +04:00
< input type = " text " name = " user " id = " user " placeholder = " " value = " " autocomplete = " off " required autofocus />
2013-04-24 16:17:13 +04:00
< 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 = " " />
2013-06-18 13:43:11 +04:00
< ? php if ( $_ [ 'isEncrypted' ]) : ?>
2013-06-05 20:38:39 +04:00
< br />< br />
2013-06-19 14:05:45 +04:00
< ? php print_unescaped ( $l -> t ( " Your files are encrypted. If you haven't enabled the recovery key, there will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue? " )); ?> <br />
2013-06-05 20:38:39 +04:00
< input type = " checkbox " name = " continue " value = " Yes " />
< ? php print_unescaped ( $l -> t ( 'Yes, I really want to reset my password now' )); ?> <br/><br/>
< ? php endif ; ?>
2011-10-03 16:41:55 +04:00
</ p >
2013-04-23 14:36:27 +04:00
< input type = " submit " id = " submit " value = " <?php print_unescaped( $l->t ('Request reset')); ?> " />
2013-04-08 09:11:35 +04:00
</ fieldset >
</ form >
< ? php endif ; ?>