From a82c8f58cceffd8808635d0501ca401e8d65a2ab Mon Sep 17 00:00:00 2001
From: Robert Pirritano
Date: Fri, 29 Dec 2017 14:54:46 -0800
Subject: [PATCH] made small changes to login screen
added height back 70px back to footer and removed .htaccess file
Signed-off-by: Robert R Pirritano
---
core/css/guest.css | 6 ++----
core/js/lostpassword.js | 1 +
core/templates/login.php | 12 ++++++------
.../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 4256c66302..ecc3da9d08 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 b44962f552..8c77004744 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 d28c92e36e..de991e08d9 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -51,17 +51,17 @@ script('core', 'merged-login');
-
-
- t('Wrong password.')); ?>
-
-
-
+
+
+ t('Wrong password.')); ?>
+
+
+
diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php
index 560dd83f30..1496e3030c 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");
}