From e9caaa933c5719d33f1cc51e56072f52e5d338ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20M=C3=BCller?= <julian.mueller.ffb@kabelmail.de>
Date: Tue, 29 Oct 2013 01:29:38 +0100
Subject: [PATCH] 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 @@
-<?php if ($_['requested']): ?>
-	<div class="success"><p>
+<?php
+//load the file we need
+OCP\Util::addStyle('lostpassword', 'lostpassword');
+	if ($_['requested']): ?>
+		<div class="success"><p>
 	<?php
 		print_unescaped($l->t('The link to reset your password has been sent to your email.<br>If you do not receive it within a reasonable amount of time, check your spam/junk folders.<br>If it is not there ask your local administrator .'));
 	?>
@@ -8,11 +11,11 @@
 	<form action="<?php print_unescaped(OC_Helper::linkToRoute('core_lostpassword_send_email')) ?>" method="post">
 		<fieldset>
 			<?php if ($_['error']): ?>
-				<div class="errors"><p>
+				<div class="errors"><p align="center">
 				<?php print_unescaped($l->t('Request failed!<br>Did you make sure your email/username was right?')); ?>
 				</p></div>
 			<?php endif; ?>
-			<?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?>
+			<div class="white"><?php print_unescaped($l->t('You will receive a link to reset your password via Email.')); ?></div>
 			<p class="infield">
 				<input type="text" name="user" id="user" placeholder="" value="" autocomplete="off" required autofocus />
 				<label for="user" class="infield"><?php print_unescaped($l->t( 'Username' )); ?></label>
@@ -24,7 +27,7 @@
 					<?php print_unescaped($l->t('Yes, I really want to reset my password now')); ?><br/><br/>
 				<?php endif; ?>
 			</p>
-			<input type="submit" id="submit" value="<?php print_unescaped($l->t('Request reset')); ?>" />
+			<input type="submit" id="submit" value="<?php print_unescaped($l->t('Zurücksetzen')); ?>" />
 		</fieldset>
 	</form>
 <?php endif; ?>
-- 
GitLab