Merge pull request #5592 from owncloud/lost_password_screen

Fixing lost password-screen
remotes/origin/stable6
Thomas Müller 12 years ago
commit 8ab5da0833
  1. 36
      core/lostpassword/css/lostpassword.css
  2. 13
      core/lostpassword/templates/lostpassword.php

@ -0,0 +1,36 @@
#body-login
input[type="text"],
input[type="submit"] {
margin: 5px 0;
}
input[type="text"]#user{
padding-right: 12px;
padding-left: 41px;
}
#body-login
input[type="submit"] {
text-align: center;
width: 170px;
height: 45px;
padding-top: 7px;
padding-bottom: 7px;
}
#body-login input[type="submit"]#submit {
width: 280px;
}
#body-login .update {
text-align: left;
}
#body-login .update,
#body-login .error {
margin: 10px 0 5px 0;
}
#user {
width: 226px !important;
}

@ -1,5 +1,8 @@
<?php if ($_['requested']): ?> <?php
<div class="success"><p> //load the file we need
OCP\Util::addStyle('lostpassword', 'lostpassword');
if ($_['requested']): ?>
<div class="update"><p>
<?php <?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 .')); 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 .'));
?> ?>
@ -8,11 +11,11 @@
<form action="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?>" method="post"> <form action="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?>" method="post">
<fieldset> <fieldset>
<?php if ($_['error']): ?> <?php if ($_['error']): ?>
<div class="errors"><p> <div class="error"><p>
<?php print_unescaped($l->t('Request failed!<br>Did you make sure your email/username was right?')); ?> <?php print_unescaped($l->t('Request failed!<br>Did you make sure your email/username was right?')); ?>
</p></div> </p></div>
<?php endif; ?> <?php endif; ?>
<?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?> <div class="update"><?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?></div>
<p class="infield"> <p class="infield">
<input type="text" name="user" id="user" placeholder="" value="" autocomplete="off" required autofocus /> <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> <label for="user" class="infield"><?php print_unescaped($l->t( 'Username' )); ?></label>
@ -24,7 +27,7 @@
<?php print_unescaped($l->t('Yes, I really want to reset my password now')); ?><br/><br/> <?php print_unescaped($l->t('Yes, I really want to reset my password now')); ?><br/><br/>
<?php endif; ?> <?php endif; ?>
</p> </p>
<input type="submit" id="submit" value="<?php print_unescaped($l->t('Request reset')); ?>" /> <input type="submit" id="submit" value="<?php print_unescaped($l->t('Reset')); ?>" />
</fieldset> </fieldset>
</form> </form>
<?php endif; ?> <?php endif; ?>

Loading…
Cancel
Save