2017-01-10 - Re: [GRASE-Hotspot] Re: Redirect URL after login
Header Data
From: Leonardo Soares <le***s@gmail.com>
Message Hash: b6114adaa225e0d9a4617ce33a837ac5b5088f12351d007704d8d63c8abb822a
Message ID: <647bc8b0-3405-444d-91c3-06f1f3f53e5f@grasehotspot.org>
Reply To: <CAESLx0+Lq8eRLwxsFNmi=EqC4kJDLSXsQZ_xkGwivNVj6r_0oQ@mail.gmail.com>
UTC Datetime: 2017-01-10 05:30:36 UTC
Raw Date: Tue, 10 Jan 2017 04:30:36 -0800
Raw message
Very nice Tim.
Thank you for you attention.
Em terça-feira, 10 de janeiro de 2017 09:04:32 UTC-2, timwhite88 escreveu:
>
> 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***.@gmail.com
> <javascript:>> 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***.@gmail.com <javascript:>
>> Perfil LinkedIn, aqui.
>> <http://www.linkedin.com/pub/leonardo-dornelas-soares/44/6a/1b5>
>> Tel.: +55 (32) 98809-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***.@gmail.com <javascript:>
>> >:
>>
>>> 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/GraseHotspot/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***.@gmail.com
>>> <javascript:>> 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***.@gmail.com
>>>> <javascript:>>:
>>>>
>>>>> 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/grasehotspot.org/group/grase-hotspot/.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/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***.@grasehotspot.org <javascript:>.
>>>>> To post to this group, send email to gr***.@grasehotspot.org
>>>>> <javascript:>.
>>>>> 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/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***.@grasehotspot.org <javascript:>.
>>>> To post to this group, send email to gr***.@grasehotspot.org
>>>> <javascript:>.
>>>> 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/CADDedMFdWhxCUvQG50MMuUue4Gu_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***.@grasehotspot.org <javascript:>.
>>> To post to this group, send email to gr***.@grasehotspot.org
>>> <javascript:>.
>>> 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/CAESLx0KVprhCDuRNoHXFkaqQKDSAbhvL4YH5P6sY6mzrtWGqpQ%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***.@grasehotspot.org <javascript:>.
>> To post to this group, send email to gr***.@grasehotspot.org
>> <javascript:>.
>> 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
-
Return to January 2017
- Return to “Leonardo Soares <le***s@gmail.com>”
- Return to “emre erdoğan <po***e@gmail.com>”
-
Return to “Timothy White <ti***8@gmail.com>”
- 2017-01-09 (Mon, 09 Jan 2017 09:22:47 -0800) - Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-09 (Mon, 09 Jan 2017 19:09:12 +0000) - Re: [GRASE-Hotspot] Redirect URL after login - emre erdoğan <po***e@gmail.com>
- 2017-01-09 (Mon, 09 Jan 2017 12:02:41 -0800) - Re: Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-09 (Mon, 09 Jan 2017 23:06:49 +0300) - Re: [GRASE-Hotspot] Re: Redirect URL after login - emre erdoğan <po***e@gmail.com>
- 2017-01-09 (Mon, 09 Jan 2017 12:28:34 -0800) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 10:29:29 +0300) - Re: [GRASE-Hotspot] Re: Redirect URL after login - emre erdoğan <po***e@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 18:44:25 +1000) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Timothy White <ti***8@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 12:35:59 +0300) - Re: [GRASE-Hotspot] Re: Redirect URL after login - emre erdoğan <po***e@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 08:42:56 -0200) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 21:04:29 +1000) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Timothy White <ti***8@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 04:30:36 -0800) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 21:04:29 +1000) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Timothy White <ti***8@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 04:32:32 -0800) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 18:44:25 +1000) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Timothy White <ti***8@gmail.com>
- 2017-01-10 (Tue, 10 Jan 2017 10:29:29 +0300) - Re: [GRASE-Hotspot] Re: Redirect URL after login - emre erdoğan <po***e@gmail.com>
- 2017-01-09 (Mon, 09 Jan 2017 12:28:34 -0800) - Re: [GRASE-Hotspot] Re: Redirect URL after login - Leonardo Soares <le***s@gmail.com>
- 2017-01-09 (Mon, 09 Jan 2017 23:06:49 +0300) - Re: [GRASE-Hotspot] Re: Redirect URL after login - emre erdoğan <po***e@gmail.com>