summaryrefslogtreecommitdiffstats
path: root/core/lostpassword
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-04-23 12:36:27 +0200
committerkondou <kondou@ts.unde.re>2013-04-23 12:38:25 +0200
commit1e2efdddc9a8770f483a3a368fdc9a7fe6927420 (patch)
treefb86499208716b59a2964582d15b4036097be583 /core/lostpassword
parent0d3afadab28c5d4008c6b0c1051c31f0c67a462e (diff)
downloadnextcloud-server-1e2efdddc9a8770f483a3a368fdc9a7fe6927420.tar.gz
nextcloud-server-1e2efdddc9a8770f483a3a368fdc9a7fe6927420.zip
Oneliners, <br>, proper errors & print_unescaped()
Diffstat (limited to 'core/lostpassword')
-rw-r--r--core/lostpassword/templates/lostpassword.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php
index bb06249b722..4f884195799 100644
--- a/core/lostpassword/templates/lostpassword.php
+++ b/core/lostpassword/templates/lostpassword.php
@@ -1,25 +1,23 @@
<?php if ($_['requested']): ?>
<div class="success"><p>
<?php
- echo $l->t('The link to reset your password has been sent to your email.</p>
- <p>If you do not receive it within a reasonable amount of time, check your spam/junk folders.</p>
- <p>If it is not there ask your local administrator .');
+ 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 echo OC_Helper::linkToRoute('core_lostpassword_send_email') ?>" method="post">
+ <form action="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?>" method="post">
<fieldset>
<?php if ($_['error']): ?>
<div class="errors"><p>
- <?php echo $l->t('Request failed!</p><p>Did you make sure the Email was right?'); ?>
+ <?php print_unescaped($l->t('Request failed!<br>Did you make sure your email/username was right?')); ?>
</p></div>
<?php endif; ?>
- <?php echo $l->t('You will receive a link to reset your password via Email.'); ?>
+ <?php print_unescaped($l->t('You will receive a link to reset your password via Email.')=; ?>
<p class="infield">
- <label for="user" class="infield"><?php echo $l->t( 'Username' ); ?></label>
+ <label for="user" class="infield"><?php print_unescaped($l->t( 'Username' )); ?></label>
<input type="text" name="user" id="user" placeholder="" value="" autocomplete="off" required autofocus />
</p>
- <input type="submit" id="submit" value="<?php echo $l->t('Request reset'); ?>" />
+ <input type="submit" id="submit" value="<?php print_unescaped($l->t('Request reset')); ?>" />
</fieldset>
</form>
<?php endif; ?>