Re: [web2py] Re: login after period of inactivity

2020-05-08 Thread Maurice Waka
I did not have the code for timeout function(wish I could do that) But going back to my error issue, I solved it by: model: auth.settings.login_next = URL('default','user',args='login', extension=False) default/user: auth.messages.ajax_failed_authentication = DIV(H4(T('Your session has

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Jim Steil
Can you share the code for the user function in default.py? How do you know that the session timed out? Jim On Wed, May 6, 2020, 5:58 PM Maurice Waka wrote: > After clicking the login, that's when the error comes in. > No I haven't set the timer. I left the same time length in default. >

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Maurice Waka
After clicking the login, that's when the error comes in. No I haven't set the timer. I left the same time length in default. Kind regards On Wed, May 6, 2020 at 3:58 PM Jim S wrote: > You said you notice this message after a period of inactivity, but you > also say this message comes up after

Re: [web2py] Re: login after period of inactivity

2020-05-06 Thread Jim S
You said you notice this message after a period of inactivity, but you also say this message comes up after clicking login. What is telling you that this is happening after a period of inactivity? I was hoping to see what you have for default/user/load (which you referenced above) - load is

Re: [web2py] Re: login after period of inactivity

2020-05-05 Thread Maurice Waka
Actually, I want to customize the code to get better feedback, and after digging in I got this discussion I just don't know where to exactly place this code, or get something

Re: [web2py] Re: login after period of inactivity

2020-05-05 Thread Maurice Waka
I don't know what code I could show since the app is online, but in my routes.py: from fileutils import abspath from languages import read_possible_languages possible_languages = read_possible_languages(abspath('applications', app)) #

[web2py] Re: login after period of inactivity

2020-05-05 Thread Jim S
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