diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-15 14:52:11 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-15 14:52:11 +0400 |
commit | c930ac9f881930f9b4cf93534135dc15aa570444 (patch) | |
tree | fd9e09311c5eaeab347a934143d710d60b454e27 /core | |
parent | cf7df2db7a4e729c0cef5932b1aed792390bb7d3 (diff) | |
parent | 7095b3a083041a435adc50afbec397bd9be614c6 (diff) |
Merge pull request #30 from visit1985/logonpage
extend logon page to display multiple error messages
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/login.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index bb7a8337523..a3a62b97958 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -2,9 +2,20 @@ <form method="post"> <fieldset> <?php if(!empty($_['redirect'])) { echo '<input type="hidden" name="redirect_url" value="'.$_['redirect'].'" />'; } ?> - <?php if($_['display_lostpassword']): ?> - <a href="./core/lostpassword/"><?php echo $l->t('Lost your password?'); ?></a> + <ul> + <?php if($_['invalidcookie']): ?> + <li class="errors"> + <?php echo $l->t('Automatic logon rejected!'); ?><br> + <small><?php echo $l->t('If you did not change your password recently, your account may be compromised!'); ?></small><br> + <small><?php echo $l->t('Please change your password to secure your account again.'); ?></small> + </li> <?php endif; ?> + <?php if($_['invalidpassword']): ?> + <a href="./core/lostpassword/"><li class="errors"> + <?php echo $l->t('Lost your password?'); ?> + </li></a> + <?php endif; ?> + </ul> <p class="infield"> <label for="user" class="infield"><?php echo $l->t( 'Username' ); ?></label> <input type="text" name="user" id="user" value="<?php echo $_['username']; ?>"<?php echo $_['user_autofocus']?' autofocus':''; ?> autocomplete="on" required /> |