|
-
Jun 18th, 2007, 02:49 PM
#1
Thread Starter
Fanatic Member
Auth and Smarty
Does anyone know of a good auth lib that works well with Smarty? I had a look at Pear::Auth, but can't really figure out how to make it play nice with smarty because of how it uses the "loginFunction" to display a login form...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jun 19th, 2007, 03:14 PM
#2
Re: Auth and Smarty
Why not extend the original Pear::Auth class and override the login function to use smarty?
-
Jun 20th, 2007, 04:01 AM
#3
Thread Starter
Fanatic Member
Re: Auth and Smarty
But why should the auth lib draw anything at all? I just want to write a <form> in my template where I want to have the login stuff.
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jun 20th, 2007, 08:00 AM
#4
-
Jun 20th, 2007, 01:24 PM
#5
Thread Starter
Fanatic Member
Re: Auth and Smarty
I just threw a glance at the docs and saw that they had that function echoing html tags. I'll have a closer look, maybe I can just make it an empty function that doesn't output anything and take care of the drawing of the login form myself...
Never argue with fools, they will only drag you down to their level, and beat you with experience.
Q: How do you tell an experienced hacker from a novice?
A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer
-
Jun 20th, 2007, 01:56 PM
#6
Re: Auth and Smarty
Is the whole authentication process not separate from the output and display of the login form?
In any case you can use inheritance to modify the functionality of the base class and change any functions you wish.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|