2017-01-10 - Re: [GRASE-Hotspot] Re: Redirect URL after login

Header Data

From: Timothy White <ti***8@gmail.com>
Message Hash: 8e0fd037dbf382c7caacc2a8c5e45dc277c1dfc701ed032d40ff4e2c7ea4e541
Message ID: <CAESLx0+Lq8eRLwxsFNmi=EqC4kJDLSXsQZ_xkGwivNVj6r_0oQ@mail.gmail.com>
Reply To: <CAJfU6VrvhoNan0jeE_SzeRDrgEoirFgouR2czoS2JrR6hA2otw@mail.gmail.com>
UTC Datetime: 2017-01-10 04:04:29 UTC
Raw Date: Tue, 10 Jan 2017 21:04:29 +1000

Raw message

At it's most basic, you could edit the jqchilli.js file (your changes will
be overridden in an update).

diff --git a/files/usr/share/grase/www/uam/js/jqchilli.js
b/files/usr/share/grase/www/uam/js/jqchilli.js
index cf11b3d..95d02af 100644
--- a/files/usr/share/grase/www/uam/js/jqchilli.js
+++ b/files/usr/share/grase/www/uam/js/jqchilli.js
@@ -281,14 +281,7 @@ function process_reply(resp) {
             if (chilliController.clientState ===
chilliController.stateCodes.AUTH_PENDING) {
                 // We have sucessfully logged in or changed states to
logged in
                 error_message("Login successful", 'alert-success');
-                var userurl = getQueryVariable('userurl');
-                if (typeof (userurl) == 'string') {
-                    userurl = decodeURIComponent(userurl);
-                    error_message("Continue to your site <a
target='_blank' href='" + userurl + "'>" + userurl + "</a>",
'alert-success');
-                    if (userurl.match(/(generate_204)/)) {
-                        window.location.href = userurl;
-                    }
-                }
+                window.location.href = 'https://www.google.com/';

             }
             //console.log(chilliController.clientState);


On Tue, Jan 10, 2017 at 8:42 PM, Leonardo Soares <le***s@gmail.com>
wrote:

> Hi Tim,
>
> How can I configure the redirect option (https://github.com/
> GraseHotspot/grase-www-portal/issues/155). Please give me example to
> redirect to www.google.com
>
> Leonardo Dornelas Soares
> Analista de Sistemas
> Skype: leonardodss | le***s@gmail.com
> Perfil LinkedIn, aqui.
> <http://www.linkedin.com/pub/leonardo-dornelas-soares/44/6a/1b5>
> Tel.: +55 (32) 98809-4705 <+55%2032%2098809-4705>
>
> *Esta mensagem pode conter informação confidencial e/ou privilegiada. Se
> você não for o destinatário ou a pessoa autorizada a receber esta mensagem,
> não poderá usar, copiar ou divulgar as informações nela contidas ou tomar
> qualquer ação baseada nessas informações. Se você recebeu esta mensagem por
> engano, por favor avise imediatamente o remetente, respondendo o e-mail e
> em seguida apague-o. Agradecemos sua cooperação.*
>
> *This message may contain confidential and/or privileged information. If
> you are not the addressee or authorized to receive this for the addressee,
> you must not use, copy, disclose or take any action based on this message
> or any information herein. If you have received this message in error,
> please advise the sender immediately by reply e-mail and delete this
> message. Thank you for your cooperation*
>
> 2017-01-10 6:44 GMT-02:00 Timothy White <ti***8@gmail.com>:
>
>> Unfortunately this won't work how you want it. It'll only work for those
>> not using the secure javascript login method.
>>
>> If you follow the issue at https://github.com/GraseHot
>> spot/grase-www-portal/issues/130 you can be updated when there is a way
>> to do this automatically. Currently it would require modifications to core
>> javascript files.
>>
>> Regards
>>
>> Tim
>>
>> On Tue, Jan 10, 2017 at 5:29 PM, emre erdoğan <po***e@gmail.com>
>> wrote:
>>
>>> Yes, this the right page. But you should edit "Logged In HTML" titled
>>> form.
>>> You may write <meta http-equiv="refresh" content="0; url=
>>> http://yourwebsiteaddress.com">
>>>
>>> 2017-01-09 23:28 GMT+03:00 Leonardo Soares <le***s@gmail.com>:
>>>
>>>> In this form?
>>>>
>>>> What html code should I use? Please, put example.
>>>>
>>>>
>>>>
>>>> Em segunda-feira, 9 de janeiro de 2017 18:06:51 UTC-2, postaemre
>>>> escreveu:
>>>>>
>>>>> You may use radmin panel portal customisation page.
>>>>> If you want to manually edit the file , try
>>>>>  /usr/share/grase/www/uam/templates/loggedin.tpl
>>>>>
>>>>>
>>>>> 9 Oca 2017 22:02 tarihinde "Leonardo Soares" <le***.@gmail.com>
>>>>> yazdı:
>>>>>
>>>>>> Where is this configuration file?
>>>>>>
>>>>>> Em segunda-feira, 9 de janeiro de 2017 15:22:47 UTC-2, Leonardo
>>>>>> Soares escreveu:
>>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> How can I redirect a specific page after login?
>>>>>>>
>>>>>>> Exemple,
>>>>>>>
>>>>>>> After the user accesses wi-fi, be redirected to the page
>>>>>>> www.google.com
>>>>>>>
>>>>>> --
>>>>>> This mailing list is for the Grase Hotspot Project
>>>>>> http://grasehotspot.org
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Grase Hotspot" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to gr***.@grasehotspot.org.
>>>>>> To post to this group, send email to gr***.@grasehotspot.org.
>>>>>> Visit this group at https://groups.google.com/a/gr
>>>>>> asehotspot.org/group/grase-hotspot/.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-h
>>>>>> otspot/5a7ea1fe-f68c-4d6a-b567-52661016398b%40grasehotspot.org
>>>>>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/5a7ea1fe-f68c-4d6a-b567-52661016398b%40grasehotspot.org?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> This mailing list is for the Grase Hotspot Project
>>>> http://grasehotspot.org
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Grase Hotspot" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to gr***e@grasehotspot.org.
>>>> To post to this group, send email to gr***t@grasehotspot.org.
>>>> Visit this group at https://groups.google.com/a/gr
>>>> asehotspot.org/group/grase-hotspot/.
>>>> To view this discussion on the web visit https://groups.google.com/a/gr
>>>> asehotspot.org/d/msgid/grase-hotspot/f8045295-4400-44b0-bcc8
>>>> -249595212160%40grasehotspot.org
>>>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/f8045295-4400-44b0-bcc8-249595212160%40grasehotspot.org?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>> --
>>> This mailing list is for the Grase Hotspot Project
>>> http://grasehotspot.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Grase Hotspot" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to gr***e@grasehotspot.org.
>>> To post to this group, send email to gr***t@grasehotspot.org.
>>> Visit this group at https://groups.google.com/a/gr
>>> asehotspot.org/group/grase-hotspot/.
>>> To view this discussion on the web visit https://groups.google.com/a/gr
>>> asehotspot.org/d/msgid/grase-hotspot/CADDedMFdWhxCUvQG50MMuU
>>> ue4Gu_hwv4hy0keLb9C3qhFfrnsA%40mail.gmail.com
>>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CADDedMFdWhxCUvQG50MMuUue4Gu_hwv4hy0keLb9C3qhFfrnsA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>> --
>> This mailing list is for the Grase Hotspot Project
>> http://grasehotspot.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Grase Hotspot" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to gr***e@grasehotspot.org.
>> To post to this group, send email to gr***t@grasehotspot.org.
>> Visit this group at https://groups.google.com/a/gr
>> asehotspot.org/group/grase-hotspot/.
>> To view this discussion on the web visit https://groups.google.com/a/gr
>> asehotspot.org/d/msgid/grase-hotspot/CAESLx0KVprhCDuRNoHXFk
>> aqQKDSAbhvL4YH5P6sY6mzrtWGqpQ%40mail.gmail.com
>> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAESLx0KVprhCDuRNoHXFkaqQKDSAbhvL4YH5P6sY6mzrtWGqpQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
> --
> This mailing list is for the Grase Hotspot Project http://grasehotspot.org
> ---
> You received this message because you are subscribed to the Google Groups
> "Grase Hotspot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gr***e@grasehotspot.org.
> To post to this group, send email to gr***t@grasehotspot.org.
> Visit this group at https://groups.google.com/a/
> grasehotspot.org/group/grase-hotspot/.
> To view this discussion on the web visit https://groups.google.com/a/
> grasehotspot.org/d/msgid/grase-hotspot/CAJfU6VrvhoNan0jeE_
> SzeRDrgEoirFgouR2czoS2JrR6hA2otw%40mail.gmail.com
> <https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/CAJfU6VrvhoNan0jeE_SzeRDrgEoirFgouR2czoS2JrR6hA2otw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

Thread