Where can i find a complete and clear tutorial for before filters

44 views
Skip to first unread message

ENTR0PY

unread,
Nov 5, 2014, 9:06:17 PM11/5/14
to chica...@googlegroups.com
Where can i get a clear and complete example / tutorial on how to use before filter for logins?

Thanks !!!!

Nick Garanko

unread,
Nov 6, 2014, 9:02:05 AM11/6/14
to chica...@googlegroups.com

ENTR0PY

unread,
Nov 8, 2014, 11:52:35 AM11/8/14
to chica...@googlegroups.com
Hi, thanks much, ill ket you know how things work out....
Message has been deleted
Message has been deleted
Message has been deleted

Nick Garanko

unread,
Nov 10, 2014, 6:07:48 AM11/10/14
to chica...@googlegroups.com, chica...@googlegroups.com
Most likely you’re in redirect loop since controller with login screen is not excluded from ‘login_required_filter’.

There are few ways to avoid that:
Option a: reuse my code
1. Separate login screen and all public pages from password protected pages (as it’s done in r2d2)
2. make sure controller with public pages is in `login_excempt` list of boss.config like:
  `{login_excempt, [r2d2_public_controller]},`
3. don’t forget to restart, since config changes aren’t auto reloaded.

Option b: extend login_required_filter to your needs.

-Nick



On Sun, Nov 9, 2014 at 12:43 AM, ENTR0PY <egos...@gmail.com> wrote:

ok, adjusted my application to match r2d2 as much as possible , i am now getting

The page isn't redirecting properly errors in Firefox and chrome.
not sure where i went wrong..


On Wednesday, November 5, 2014 10:06:17 PM UTC-4, ENTR0PY wrote:
Where can i get a clear and complete example / tutorial on how to use before filter for logins?

Thanks !!!!

--
You received this message because you are subscribed to a topic in the Google Groups "ChicagoBoss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chicagoboss/gwgEOg1HY6g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chicagoboss...@googlegroups.com.
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/858ea984-aa0c-439a-8a9d-859056b71d7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages