[pubcookie-dev]
CVS update: willey; webiso/pubcookie/src flavor_basic.c,1.65,1.66
Stephen Willey
willey at cac.washington.edu
Wed Oct 6 15:43:49 PDT 2004
Update of /usr/local/cvsroot/webiso/pubcookie/src
In directory webiso-cvs.cac.washington.edu:/var/tmp/cvs-serv27061/src
Modified Files:
flavor_basic.c
Log Message:
use both custom login message and login cookie expired message
Index: webiso/pubcookie/src/flavor_basic.c
diff -c webiso/pubcookie/src/flavor_basic.c:1.65 webiso/pubcookie/src/flavor_basic.c:1.66
*** webiso/pubcookie/src/flavor_basic.c:1.65 Wed Oct 6 14:26:39 2004
--- webiso/pubcookie/src/flavor_basic.c Wed Oct 6 15:43:47 2004
***************
*** 13,19 ****
* will pass l->realm to the verifier and append it to the username when
* 'append_realm' is set
*
! * $Id: flavor_basic.c,v 1.65 2004/10/06 21:26:39 willey Exp $
*/
--- 13,19 ----
* will pass l->realm to the verifier and append it to the username when
* 'append_realm' is set
*
! * $Id: flavor_basic.c,v 1.66 2004/10/06 22:43:47 willey Exp $
*/
***************
*** 361,366 ****
--- 361,367 ----
char func[] = "print_login_page";
int ret = PBC_FAIL;
char *login_msg = NULL;
+ char *reason_msg = NULL;
pbc_log_activity(p, PBC_LOG_DEBUG_VERBOSE, "%s: hello reason: %d", func, reason);
***************
*** 391,398 ****
l->appsrvid, &login_msg)) == PBC_FAIL )
goto done;
! if ( login_msg == NULL )
! if( (ret = get_reason_html(p, reason, l, c, &login_msg)) == PBC_FAIL )
goto done;
while (hidden_needed_len > hidden_len) {
--- 392,403 ----
l->appsrvid, &login_msg)) == PBC_FAIL )
goto done;
! /* if there is no custom login message go get the reason text
! in the case of expired login messages we use both the
! the custom message (itis) and the lcookie expired message
! */
! if ( login_msg == NULL || reason == FLB_LCOOKIE_EXPIRED )
! if( (ret = get_reason_html(p, reason, l, c, &reason_msg)) == PBC_FAIL )
goto done;
while (hidden_needed_len > hidden_len) {
***************
*** 516,521 ****
--- 521,527 ----
libpbc_config_getstring(p, "tmpl_login", "login"),
"loginuri", PBC_LOGIN_URI,
"message", login_msg != NULL ? login_msg : "",
+ "reason", reason_msg != NULL ? reason_msg : "",
"curtime", now,
"hiddenuser", hidden_user != NULL ? hidden_user : "",
"hiddenfields", hidden_fields,
end of message
More information about the pubcookie-dev
mailing list