Bug / Feature #1528
closed
Password-Reset wird auf Anmelde-Seite nicht verlinkt
Added by danilo about 13 years ago.
Updated almost 12 years ago.
Start date:
24 August 2011
Description
Auf der Login-Seite von Drupal ist keine Spur vom Password-Reset-Formular.
- Priority changed from Normal to Low
- Assignee changed from Apophis to LukyLuke
Wüsstest du wie man das lösen kann?
- Assignee changed from LukyLuke to Apophis
Auf die schnelle würde ich auch sagen, dass man da das Template anpassen muss.
Aus dem Link von Danilo und weiteren Seiten müsste das hier bei drupal-6 funktionieren:
template.php
--- template.php 2012-02-04 10:02:55.000000000 +0100
+++ template_new.php 2012-02-04 11:14:23.372700851 +0100
@@ -140,9 +140,18 @@
'arguments' => array('menu' => NULL)
);
+ $hooks['user_login'] = array(
+ 'template' => 'templates/user_login',
+ 'arguments' => array('form' => NULL),
+ );
+
return $hooks;
}
+function mytheme_preprocess_user_login(&$variables) {
+ $variables['remember_pass'] = t('Remember Password');
+ $variables['remember_link'] = 'https://xxxxx';
+ $variables['rendered'] = drupal_render($variables['form']);
+}
/**
* Override or insert variables into the comment templates.
user_login.tpl.php
<?php print $rendered; ?>
<br/>
<a href="<?php print $remember_link; ?>"><?php print $remember_pass; ?></a>
- Assignee changed from Apophis to corvus
- Status changed from New to 15
werden wir in D6 nicht mehr fixen.
- Due date set to 12 March 2013
Automatically enforce due date for Low Priority after 60 days in the future
- Status changed from Needs Work to Won't Do
- Assignee changed from corvus to danilo
Automaticaclly enforce assigned-to to the author of the ticket
- Status changed from Won't Do to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF