From e9caaa933c5719d33f1cc51e56072f52e5d338ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=BCller?= Date: Tue, 29 Oct 2013 01:29:38 +0100 Subject: [PATCH 1/3] Fixing the Lost Password Screen --- core/lostpassword/css/lostpassword.css | 26 ++++++++++++++++++++ core/lostpassword/templates/lostpassword.php | 13 ++++++---- 2 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 core/lostpassword/css/lostpassword.css diff --git a/core/lostpassword/css/lostpassword.css b/core/lostpassword/css/lostpassword.css new file mode 100644 index 0000000000..bcb2d85698 --- /dev/null +++ b/core/lostpassword/css/lostpassword.css @@ -0,0 +1,26 @@ +#body-login +input[type="text"], +input[type="submit"] { + margin-left: 0; +} + +input[type="text"] { + padding-right: 19px; +} + +#body-login +input[type="submit"] { + text-align: center; + width: 170px; + height: 45px; + padding-top: 7px; + padding-bottom: 7px; +} + +fieldset { + margin-left: 2px; +} + +.white { + color: white; +} diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php index f5fdb1fb2b..5363b93e32 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -1,5 +1,8 @@ - -

+ +

t('The link to reset your password has been sent to your email.
If you do not receive it within a reasonable amount of time, check your spam/junk folders.
If it is not there ask your local administrator .')); ?> @@ -8,11 +11,11 @@

-

+

t('Request failed!
Did you make sure your email/username was right?')); ?>

- t('You will receive a link to reset your password via Email.')); ?> +
t('You will receive a link to reset your password via Email.')); ?>

@@ -24,7 +27,7 @@ t('Yes, I really want to reset my password now')); ?>

- +
From 776346b5037282f352c206d66224b5b2a32f56f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=BCller?= Date: Tue, 29 Oct 2013 01:33:12 +0100 Subject: [PATCH 2/3] Fixing the lost Password Screen --- core/lostpassword/templates/lostpassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php index 5363b93e32..bfc9f23008 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -27,7 +27,7 @@ OCP\Util::addStyle('lostpassword', 'lostpassword'); t('Yes, I really want to reset my password now')); ?>

- + From ffbcfef614715ffaa1d53bdd6744e533ddaeb8c1 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 29 Oct 2013 13:42:39 +0100 Subject: [PATCH 3/3] fix lost password screen - reuse available CSS rules --- core/lostpassword/css/lostpassword.css | 24 ++++++++++++++------ core/lostpassword/templates/lostpassword.php | 6 ++--- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/core/lostpassword/css/lostpassword.css b/core/lostpassword/css/lostpassword.css index bcb2d85698..85cce9f940 100644 --- a/core/lostpassword/css/lostpassword.css +++ b/core/lostpassword/css/lostpassword.css @@ -1,11 +1,12 @@ #body-login input[type="text"], input[type="submit"] { - margin-left: 0; + margin: 5px 0; } -input[type="text"] { - padding-right: 19px; +input[type="text"]#user{ + padding-right: 12px; + padding-left: 41px; } #body-login @@ -17,10 +18,19 @@ input[type="submit"] { padding-bottom: 7px; } -fieldset { - margin-left: 2px; +#body-login input[type="submit"]#submit { + width: 280px; } -.white { - color: white; +#body-login .update { + text-align: left; +} + +#body-login .update, +#body-login .error { + margin: 10px 0 5px 0; +} + +#user { + width: 226px !important; } diff --git a/core/lostpassword/templates/lostpassword.php b/core/lostpassword/templates/lostpassword.php index bfc9f23008..83a23f7b23 100644 --- a/core/lostpassword/templates/lostpassword.php +++ b/core/lostpassword/templates/lostpassword.php @@ -2,7 +2,7 @@ //load the file we need OCP\Util::addStyle('lostpassword', 'lostpassword'); if ($_['requested']): ?> -

+

t('The link to reset your password has been sent to your email.
If you do not receive it within a reasonable amount of time, check your spam/junk folders.
If it is not there ask your local administrator .')); ?> @@ -11,11 +11,11 @@ OCP\Util::addStyle('lostpassword', 'lostpassword');

-

+

t('Request failed!
Did you make sure your email/username was right?')); ?>

-
t('You will receive a link to reset your password via Email.')); ?>
+
t('You will receive a link to reset your password via Email.')); ?>