Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichael Göhler <somebody.here@gmx.de>2012-10-12 18:12:43 +0400
committerMichael Göhler <somebody.here@gmx.de>2012-10-14 21:57:24 +0400
commit7095b3a083041a435adc50afbec397bd9be614c6 (patch)
tree984570129fa1f2e4c70d9d0db877f081ec527205 /core
parent9f9206cd0b6e9ef308a030bb850389d68799efa8 (diff)
extend logon page to display multiple error messages
Diffstat (limited to 'core')
-rw-r--r--core/templates/login.php15
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 />