svn: /web/doc-editor/trunk/php/ ExtJsController.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 17 Apr 2010 06:21:47 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=298111

Log:
Fix userName in info witch cannot be empty even if a user don't enter any userName

Changed paths:
    U   web/doc-editor/trunk/php/ExtJsController.php

Modified: web/doc-editor/trunk/php/ExtJsController.php
===================================================================
--- web/doc-editor/trunk/php/ExtJsController.php	2010-04-17 05:56:53 UTC (rev 298110)
+++ web/doc-editor/trunk/php/ExtJsController.php	2010-04-17 06:21:47 UTC (rev 298111)
@@ -75,19 +75,21 @@
      */
     public function login()
     {
+        $am = AccountManager::getInstance();
+
         $vcsLogin  = $this->getRequestVariable('vcsLogin');
         $vcsPasswd = $this->getRequestVariable('vcsPassword');
         $lang      = $this->getRequestVariable('lang');
         $project   = $this->getRequestVariable('project');

-        $response = AccountManager::getInstance()->login($project, $vcsLogin, $vcsPasswd, $lang);
+        $response = $am->login($project, $vcsLogin, $vcsPasswd, $lang);

         if ($response['state'] === true) {
             // This user is already know as a valid user

             // We stock this info into DB
             $value = array();
-            $value['user'] = $vcsLogin;
+            $value['user'] = $am->vcsLogin;
             $value['lang'] = $lang;
             RepositoryManager::getInstance()->setStaticValue('info', 'login', json_encode($value), true);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.