Hallo, ich möchte gerne einen LogIn realisieren der die Benutzer aus mehreren Sysordnern nimmt. Soweit ich gesehen habe gibt es da die Extension newloginbox_linkfactory.
Hat die schon mal jemand ans Laufen gebracht? Der Login ansich funktioniert, wenn auch nur wenn ich die Seite mit dem LogIn nicht cache. Die Locallang.php habe ich soweit angepasst das auch schon ein wenig Text da steht. Aber dann sollte es eigentlich auch noch einen "Passwort vergessen" Link geben. Vorgesehen ist der. Aber wie krieg ich den auf meine Seite? Und ist es wirklich notwendig im 'Hardcode' zu arbeiten?
Villeicht hat ja jemand eine Antwort auf meine Fragen 🙂
Villeicht sollte ich noch etwas Code dazu tun:
[...]
if ($this->piVars['forgot']) {
$content.='<h3>'.$this->pi_getLL('forgot_password','',1).'</h3>';
if (trim($this->piVars['DATA']['forgot_email']) && t3lib_div::validEmail($this->piVars['DATA']['forgot_email'])) {
$query="SELECT username,password FROM fe_users WHERE email='".addslashes(trim($this->piVars['DATA']['forgot_email']))."'
AND pid IN('".$d['_STORAGE_PID']."')".
$this->cObj->enableFields('fe_users');
$res = mysql(TYPO3_db,$query);
if ($row=mysql_fetch_assoc($res)) {
$msg=sprintf($this->pi_getLL('forgot_password_pswmsg','',1),trim($this->piVars['DATA']['forgot_email']),$row['username'],$row['password']);
} else {
$msg=sprintf($this->pi_getLL('forgot_password_no_pswmsg','',1),trim($this->piVars['DATA']['forgot_email']));
}
// Hook (used by kb_md5fepw extension by Kraft Bernhard <kraftb@gmx.net>)
if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['newloginbox']['forgotEmail'])) {
$_params = array (
'msg' => &$msg,
);
foreach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['newloginbox']['forgotEmail'] as $funcRef) {
t3lib_div::callUserFunction($funcRef, $_params, $this);
}
}
$this->cObj->sendNotifyEmail($msg, trim($this->piVars['DATA']['forgot_email']), '', $this->conf['email_from'], $this->conf['email_fromName'], $this->conf['replyTo']);
$content.='<p'.$this->pi_classParam('emailSent').'>'.sprintf($this->pi_getLL('forgot_password_emailSent','',1), '<em>'.htmlspecialchars(trim($this->piVars['DATA']['forgot_email'])).'</em>').'</p>';
$content.='<p'.$this->pi_classParam('back').'>'.$this->pi_linkTP_keepPIvars($this->pi_getLL('forgot_password_backToLogin','',1),array('forgot'=>'')).'</p>';
} else {
$content.='<p'.$this->pi_classParam('enterEmail').'>'.$this->pi_getLL('forgot_password_enterEmail','',1).'</p>';
$content.='
<!--
"Send password" form
-->
<form action="'.htmlspecialchars(t3lib_div::getIndpEnv('REQUEST_URI')).'" method="post" style="margin: 0 0 0 0;">
<table '.$this->conf['tableParams_details'].'>
<tr>
<td><p'.$this->pi_classParam('your_email').'>'.$this->pi_getLL('your_email','',1).'</p></td>
<td><input type="text" name="'.$this->prefixId.'[DATA][forgot_email]" id="'.$this->pi_getClassName('forgot_email').'" value="" /></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="submit" id="'.$this->pi_getClassName('forgot_email_submit').'" value="'.$this->pi_getLL('send_password','',1).'"'.$this->pi_classParam('submit').' />
</td>
</tr>
</table>
</form>
';
}
}
[...]
Das steht in der tx_newloginboxlinkfactory_pi1.php. Also gehen muss das, ich komm nur nich drauf wie....
Ich sach schon mal besten Dank