Redirect users function of role
I've found a solution:

function beneficiaire_user_login($form, &amp;$form_state){
  if($_SESSION['account']-&gt;temporaire){
    $_GET['destination'] = 'update-password';
  }else{
    $_GET['destination'] = 'order';
  }
}