commit 21c214deaf7b5f90d7f2430e6686b46297a1ed26
parent 91ff4c761aaee40aa328f2eb760948208253610e
Author: dankert <devnull@localhost>
Date: Thu, 24 Sep 2009 00:25:39 +0200
Login-Name im Cookie merken.
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/actionClasses/IndexAction.class.php b/actionClasses/IndexAction.class.php
@@ -277,7 +277,11 @@ class IndexAction extends Action
'value'=>Text::maxLength($dbconf['comment']),
'title'=>$dbconf['comment'].' ('.$dbconf['host'].')' );
}
-
+
+
+ if ( !isset($this->templateVars['login_name']) && isset($_COOKIE['or_username']) )
+ $this->setTemplateVar('login_name',$_COOKIE['or_username']);
+
if ( !isset($this->templateVars['login_name']) )
$this->setTemplateVar('login_name',@$conf['security']['default']['username']);
@@ -592,6 +596,9 @@ class IndexAction extends Action
$loginPassword = $this->getRequestVar('login_password','alphanum');
$newPassword1 = $this->getRequestVar('password1' ,'alphanum');
$newPassword2 = $this->getRequestVar('password2' ,'alphanum');
+
+ // Cookie setzen
+ setcookie('or_username',$loginName,time()+(60*60*24*30*12*2) );
// Login mit Open-Id.
if ( !empty($openid_user) )