xowiki::Package instproc www-refresh-login (public)

 <instance of xowiki::Package[i]> www-refresh-login

Defined in /var/www/openacs.org/packages/xowiki/tcl/package-procs.tcl

This web-callable method forces a refresh of a login and do a redirect. Intended for use from ajax.

Testcases:
No testcase defined.
Source code:
set return_url [:query_parameter return_url:localurl]
if {[::xo::cc user_id] == 0} {
  set url [subsite::get_url]register
  :returnredirect [export_vars -base $url return_url]
} else {
  :returnredirect $return_url
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: