Changeset 507 for trunk/gsdl/src/recpt/authenaction.cpp
- Timestamp:
- 1999-09-02T12:23:24+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/authenaction.cpp
r421 r507 12 12 /* 13 13 $Log$ 14 Revision 1.5 1999/09/02 00:23:24 rjmcnab 15 a couple of minor things 16 14 17 Revision 1.4 1999/07/30 02:24:43 sjboddie 15 18 added collectinfo argument to some functions … … 170 173 text_t &args_pw = args["pw"]; text_t &args_us = args["us"]; 171 174 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"]; 173 176 174 177 // we must have a username and a password or a key to … … 223 226 args_ua.clear(); 224 227 args_us = "permissiondenied"; 225 args_ug.clear();226 228 args_ky.clear(); 227 229 } … … 231 233 args_ua.clear(); 232 234 args_us = "disabled"; 233 args_ug.clear();234 235 args_ky.clear(); 235 236 } … … 237 238 } else { 238 239 // failure, reset info about the user 239 args_ug.clear();240 240 args_ky.clear(); 241 241 } … … 243 243 // we will have to redirect the user if authentication is needed, 244 244 // 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")) { 246 246 // need to save the current arguments in "er" 247 247 text_t &arg_er = args["er"]; … … 250 250 251 251 // redirect to this action 252 args ["a"]= "a";252 args_a = "a"; 253 253 } 254 254
Note:
See TracChangeset
for help on using the changeset viewer.