Hello,
is it possible to return json to the calling jQuery.ajax() function
after access was denied by decorator @auth.requires_login()?

I know there is a possibility to specify a function when authorization/
authentication failed with
auth.settings.on_failed_authentication = myFunc and
auth.settings.on_failed_authorization = myFunc

I put this two lines in model db.py. However, I don't know how to just
return json containing a url to which the user should be redirected.

Any suggestions are welcome!
Thanks, haggis

Reply via email to