Changeset 1024
- Timestamp:
- 07/18/08 23:28:59 (1 month ago)
- Files:
-
- branches/1.0.x/lib/jelix-modules/jauth/controllers/login.classic.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix-modules/jauth/templates/login.form.tpl (modified) (1 diff)
- trunk/lib/jelix-modules/jauth/controllers/login.classic.php (modified) (3 diffs)
- trunk/lib/jelix-modules/jauth/templates/login.form.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/lib/jelix-modules/jauth/controllers/login.classic.php
r717 r1024 5 5 * @author Laurent Jouanneau 6 6 * @contributor Antoine Detante 7 * @copyright 2005-2007 Laurent Jouanneau, 2007 Antoine Detante 7 * @contributor Bastien Jaillot 8 * @copyright 2005-2008 Laurent Jouanneau, 2007 Antoine Detante, 2008 Bastien Jaillot 8 9 * @link http://www.jelix.org 9 10 * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file … … 66 67 */ 67 68 function form() { 69 if (jAuth::isConnected()) { 70 $conf = $GLOBALS['gJCoord']->getPlugin('auth')->config; 71 72 if ($conf['after_login'] != '') { 73 if (!($conf['enable_after_login_override'] && $url_return= $this->param('auth_url_return'))){ 74 $url_return = jUrl::get($conf['after_login']); 75 } 76 $rep = $this->getResponse('redirectUrl'); 77 $rep->url = $url_return; 78 return $rep; 79 } 80 } 81 68 82 $rep = $this->getResponse('html'); 69 83 … … 74 88 } 75 89 } 76 ?>branches/1.0.x/lib/jelix-modules/jauth/templates/login.form.tpl
r979 r1024 28 28 </form> 29 29 {else} 30 <p>{$user-> surname} {$user->name}</p>30 <p>{$user->login}</p> 31 31 {/if} 32 32 </div> trunk/lib/jelix-modules/jauth/controllers/login.classic.php
r717 r1024 5 5 * @author Laurent Jouanneau 6 6 * @contributor Antoine Detante 7 * @copyright 2005-2007 Laurent Jouanneau, 2007 Antoine Detante 7 * @contributor Bastien Jaillot 8 * @copyright 2005-2007 Laurent Jouanneau, 2007 Antoine Detante, 2008 Bastien Jaillot 8 9 * @link http://www.jelix.org 9 10 * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file … … 66 67 */ 67 68 function form() { 69 if (jAuth::isConnected()) { 70 $conf = $GLOBALS['gJCoord']->getPlugin('auth')->config; 71 72 if ($conf['after_login'] != '') { 73 if (!($conf['enable_after_login_override'] && $url_return= $this->param('auth_url_return'))){ 74 $url_return = jUrl::get($conf['after_login']); 75 } 76 $rep = $this->getResponse('redirectUrl'); 77 $rep->url = $url_return; 78 return $rep; 79 } 80 } 81 68 82 $rep = $this->getResponse('html'); 69 83 … … 74 88 } 75 89 } 76 ?>trunk/lib/jelix-modules/jauth/templates/login.form.tpl
r980 r1024 28 28 </form> 29 29 {else} 30 <p>{$user-> surname} {$user->name}</p>30 <p>{$user->login}</p> 31 31 {/if} 32 32 </div>
