[Chilli] Automatic redirection to logout page after successful login

David Bird david at coova.com
Tue Mar 22 16:52:56 UTC 2011


Thanks, but this patch is rather specific to your network... The logout ip/hostname and the default url you picked are not general enough... If they were put into /etc/chilli/config style variables, that would be better in a patch. Thanks again.


On Mar 22, 2011, at 8:30 AM, Shaisal OK <shaisal at gmail.com> wrote:

> Index: login.chi.in
> ===================================================================
> --- login.chi.in        (revision 437)
> +++ login.chi.in        (working copy)
> @@ -31,6 +31,13 @@
> 
>      case "$FORM_res" in
>         success|already)
> +           shopt -s nocasematch
> +            if [ "$FORM_userurl" = "http://logout/" ]
> +            then
> +                FORM_userurl="http://www.google.com/"
> +            fi
> +            shopt -u nocasematch
> +
>             header "<meta http-equiv=\"refresh\" content=\"5;url=${FORM_userurl}\"/>"
>             uamfile "login_success" 1
>             footer
> 
> I have problem in creating new posts in forum 
> 
> Regards
> Shaisal OK
> 
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.coova.org/pipermail/chilli/attachments/20110322/1aa62c46/attachment.html>


More information about the Chilli mailing list