Ignore:
Timestamp:
Aug 26, 2010, 2:28:04 PM (11 years ago)
Author:
goya
Message:

oubli du cas ou l'user valide après la fin de sa session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/citoyen/actions/actions.class.php

    r1294 r1296  
    187187  {
    188188    $user = Doctrine::getTable('Citoyen')->findOneBySlug($action->slug);
    189      
     189    if (!$user) $action->forward404();
    190190    if ($user->activation_id == $action->activation_id)
    191191    {
     
    232232        $user->activation_id = null;
    233233        $user->save();
    234       }
    235       $this->forward404();
     234        $action->getUser()->setFlash('notice', 'Une erreur s\'est produite');
     235      } else
     236        $action->getUser()->setFlash('notice', 'Ce compte a déjà été activé');
     237      $action->redirect('@citoyen?slug='.$action->slug);
    236238    }
    237239  }
Note: See TracChangeset for help on using the changeset viewer.