in reply to Re^7: Re-blessing || Re-constructing objects
in thread Re-blessing || Re-constructing objects
Yes. However, I tend to put my authentication code in my cgiapp_prerun and, very rarely, refer to it in other places. This reduces work quite dramatically.
In the case of only authentication, that's a perfect solution. However, sometimes the authentication leads to authorization, and you have a system of user rights scattered all over the place. Instead of having many conditionals, I typically prefer to put all functionality in methods, and indicate rights by (re)blessing into the right package.
it's the reblessing solution that's harder to subclass.
That is what I referred to.
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Re-blessing || Re-constructing objects
by dragonchild (Archbishop) on Apr 18, 2006 at 15:21 UTC | |
by Juerd (Abbot) on Apr 18, 2006 at 15:46 UTC |