Actually, I want to customize the code to get better feedback, and after
digging in I got this discussion
<https://groups.google.com/forum/#!searchin/web2py/not$20authorized$20message|sort:date/web2py/k-FnX_X6CcI/fqgUpRbwAwAJ>
I just don't know where to exactly place this code, or get something better:
auth.messages.ajax_failed_authentication = DIV(H4(T('Your session has
expired')),
T('Please '),
A(T('login'),
_href=auth.settings.login_url +
('?_next=' +
urllib.quote(request.env.http_web2py_component_location))
if
request.env.http_web2py_component_location else ''),
T(' again to view this content.'),
_class='not-authorized alert alert-block')
On Tue, May 5, 2020 at 11:09 PM Jim S <[email protected]> wrote:
> Can you show some code?
>
> -Jim
>
> On Tuesday, May 5, 2020 at 1:38:29 PM UTC-5, Maurice Waka wrote:
>>
>> I notice this message after a period of inactivity. See attached.
>> The problem is that on clicking on the login link on the app on
>> pythonanywhere, I get an error: invalid view (default/user/load).
>> How can I resolve this?
>> Regards
>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/Px0b1zYX-Zg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/541b05b3-02b7-4bc8-8773-f093a41bc1ce%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/541b05b3-02b7-4bc8-8773-f093a41bc1ce%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/CALkNK55gawc7O47Evh8QUarrjz9QQ7%3DmHQuWp8p433ibQzxw8A%40mail.gmail.com.