diff options
author | Robert Pirritano <rpirritano@gmail.com> | 2017-12-29 14:54:46 -0800 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-11 12:37:47 +0100 |
commit | a82c8f58cceffd8808635d0501ca401e8d65a2ab (patch) | |
tree | 7666d3368862d164eee2fc698750bc6e67872eb3 | |
parent | 2a24f45b5fc8786da607f2065f73fa7133b76d04 (diff) | |
download | nextcloud-server-a82c8f58cceffd8808635d0501ca401e8d65a2ab.tar.gz nextcloud-server-a82c8f58cceffd8808635d0501ca401e8d65a2ab.zip |
made small changes to login screen
added height back 70px back to footer and removed .htaccess file
Signed-off-by: Robert R Pirritano <rpirritano@gmail.com>
-rw-r--r-- | core/css/guest.css | 6 | ||||
-rw-r--r-- | core/js/lostpassword.js | 1 | ||||
-rw-r--r-- | core/templates/login.php | 12 | ||||
-rw-r--r-- | tests/acceptance/features/bootstrap/LoginPageContext.php | 2 |
4 files changed, 10 insertions, 11 deletions
diff --git a/core/css/guest.css b/core/css/guest.css index 4256c66302f..ecc3da9d081 100644 --- a/core/css/guest.css +++ b/core/css/guest.css @@ -93,7 +93,7 @@ body { form { position: relative; width: 280px; - margin: 16px auto; + margin: auto; padding: 0; } form fieldset { @@ -410,7 +410,6 @@ form .warning input[type='checkbox']+label { padding: 12px; margin-top: -6px; color: #fff; - opacity: .7; } #forgot-password { padding: 11px; @@ -579,8 +578,7 @@ fieldset.update legend + p { margin-bottom: 15px; } p.info { - margin: 0 auto; - padding-top: 20px; + margin: 20px auto; text-shadow: 0 0 2px rgba(0, 0, 0, .4); // better readability on bright background -webkit-user-select: none; -moz-user-select: none; diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index b44962f552e..8c770047444 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -50,6 +50,7 @@ OC.Lostpassword = { event.preventDefault(); $('#lost-password').hide(); + $('.wrongPasswordMsg').hide(); $('#lost-password-back').slideDown().fadeIn(); $('.remember-login-container').slideUp().fadeOut(); $('#submit-wrapper').slideUp().fadeOut(); diff --git a/core/templates/login.php b/core/templates/login.php index d28c92e36ef..de991e08d97 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -51,17 +51,17 @@ script('core', 'merged-login'); <label for="password" class="infield"><?php p($l->t('Password')); ?></label> </p> - <?php if (!empty($_['invalidpassword'])) { ?> - <p class="warning"> - <?php p($l->t('Wrong password.')); ?> - </p> - <?php } ?> - <div id="submit-wrapper"> <input type="submit" id="submit" class="login primary" title="" value="<?php p($l->t('Log in')); ?>" disabled="disabled" /> <div class="submit-icon icon-confirm-white"></div> </div> + <?php if (!empty($_['invalidpassword'])) { ?> + <p class="warning wrongPasswordMsg"> + <?php p($l->t('Wrong password.')); ?> + </p> + <?php } ?> + <?php if (!empty($_['canResetPassword'])) { ?> <div id="reset-password-wrapper" style="display: none;"> <input type="submit" id="reset-password-submit" class="login primary" title="" value="<?php p($l->t('Reset password')); ?>" disabled="disabled" /> diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php index 560dd83f308..1496e3030c2 100644 --- a/tests/acceptance/features/bootstrap/LoginPageContext.php +++ b/tests/acceptance/features/bootstrap/LoginPageContext.php @@ -66,7 +66,7 @@ class LoginPageContext implements Context, ActorAwareInterface { * @return Locator */ public static function wrongPasswordMessage() { - return Locator::forThe()->xpath("//*[@class = 'warning' and normalize-space() = 'Wrong password.']")-> + return Locator::forThe()->xpath("//*[@class = 'warning wrongPasswordMsg' and normalize-space() = 'Wrong password.']")-> describedAs("Wrong password message in Login page"); } |