Ignore:
Timestamp:
1999-09-02T12:23:24+12:00 (25 years ago)
Author:
rjmcnab
Message:

a couple of minor things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/authenaction.cpp

    r421 r507  
    1212/*
    1313   $Log$
     14   Revision 1.5  1999/09/02 00:23:24  rjmcnab
     15   a couple of minor things
     16
    1417   Revision 1.4  1999/07/30 02:24:43  sjboddie
    1518   added collectinfo argument to some functions
     
    170173  text_t &args_pw = args["pw"];    text_t &args_us = args["us"];
    171174  text_t &args_ug = args["ug"];    text_t &args_ky = args["ky"];
    172   text_t &args_ua = args["ua"];
     175  text_t &args_ua = args["ua"];    text_t &args_a = args["a"];
    173176
    174177  // we must have a username and a password or a key to
     
    223226    args_ua.clear();
    224227    args_us = "permissiondenied";
    225     args_ug.clear();
    226228    args_ky.clear();
    227229      }
     
    231233      args_ua.clear();
    232234      args_us = "disabled";
    233       args_ug.clear();
    234235      args_ky.clear();
    235236    }
     
    237238  } else {
    238239    // failure, reset info about the user
    239     args_ug.clear();
    240240    args_ky.clear();
    241241  }
     
    243243  // we will have to redirect the user if authentication is needed,
    244244  // it failed, and we weren't on our way to be authenticated anyway
    245   if (!args_uan.empty() && args_ua.empty() && args["a"] != "a") {
     245  if ((!args_uan.empty()) && (args_ua.empty()) && (args_a != "a")) {
    246246    // need to save the current arguments in "er"
    247247    text_t &arg_er = args["er"];
     
    250250   
    251251    // redirect to this action
    252     args["a"] = "a";
     252    args_a = "a";
    253253  }
    254254 
Note: See TracChangeset for help on using the changeset viewer.