This sounds like a great thing for PHP. Does anyone know of a similar login management system for Perl? I've checked CPAN a few times for this but have yet to come up with anything.
a timely article for me, just as i was settling down to try and hand code my own login mechanism.
however, using the code in the article i hit this error message - any ideas ?
Fatal error: Call to a member function on a non-object in D:\web\me\modules\patUser\include\patUser.php on line 1497
rgds
david
Looks like you're trying to use a function in the class without calling it on an instantiated object.
I see it looks for patDBC and patTemplates. I don't have either. Will I need these loaded before patUser will work?
I see it looks for patDBC and patTemplates. I don't have either. Will I need these loaded before patUser will work?
I encountered this problem as well. Upon reviewing the source, it looks like the source listed on the tutorial a line lost a carriage return in the sample source.
look for the comment that starts:
// connect patUser to database/template engines $u->setAuthDbc($db);
Stick a carriage return right after the word engines. The code should then read like this:
// connect patUser to database/template engines
$u->setAuthDbc($db);
$u->setTemplate($tmpl);
Threw me off for a sec, but otherwise the tutorial worked fine other than that. Looking forward to the next segment.
Hope that helps!
Aloha,
Sharky
*BAH* I apologize, my last comment did not have line breaks where I had placed them. I'm reposting to show the relationship between the original comment line and the fixed line. Sorry for any inconvenience this may have caused.
=========================================
I encountered this problem as well. Upon reviewing the source, it looks like the source listed on the tutorial a line lost a carriage return in the sample source.
look for the comment that starts:
// connect patUser to database/template engines $u->setAuthDbc($db);
Stick a carriage return right after the word engines. The code should then read like this:
// connect patUser to database/template engines
$u->setAuthDbc($db);
$u->setTemplate($tmpl);
Threw me off for a sec, but otherwise the tutorial worked fine other than that. Looking forward to the next segment.
Hope that helps!
Aloha, Sharky
Hi,
Just download the package from http://www.php-tools.de.
The source for patDbc and patTemplates classes are in the /includes directory included with the package.
Aloha,
Sharky
it's a good point well made - commenting out key bits of code will always slow things down a bit, i was busy trawling through the file quoted in the error message - that's what i get for being new to php !!!
thanks again.
bdjt
Like another user said, this was great timing. I just found patUser a week or two ago and really wanted to use it, but I needed a tutorial to get me started. And this morning I was just sitting down to start coding a new store and came here to brush up on my patTemplate, and low and behold there is a patUser tutorial. :)
I just wanted to say thank you, I have learned so much from you guys' php tutorials over the past 10 months or so, I think I would have given up a long time ago if it wern't for devshed.
Thanks!
Matt
I have tried to used an encrypted password to login but it will not let me, it will only login when the password is in clear-text in the db, does anyone know how to get around this?
when i inserted the user, i put the password in like this MD5('password') and it encrypted, but would not let me login. i typed in just 'password' with no encryption and it let me login.
Does anyone have any answers on this one?
Phinesse
What if I like PatUser but dont want to use PatTemplate or PatDbc?
Is it possible to use it with no template engine and Db abstraction class? or with others classes?
I would assume then, that the password isn't saved as an encrypted password, but also as "normal" text.
Did you check that?
Hello Phinesse, did you read this:
"Link1":http://www.php-tools.de/site.php?&file=patUserDocAuthentication.xml
User Authentication with patUser \(part 1\) (http://www.devshed.com/c/a/PHP/User-Authentication-with-patUser-part-1)
Need to add authentication to your PHP-based Web application? Get it done in a jiffy with patUser, a PHP class which makes it possible to rapidly add powerful user management capabilities to your Web application. Read full article .
Please discuss this article in this thread. You can read the article here (http://www.devshed.com/c/a/PHP/User-Authentication-with-patUser-part-1).
How would ya gurus rate it in terms of security, stability, and scalability (would anyone mind to just tell a little bit about what exactly scalability is)?
Scalability is the ability to grow the application as usage/load increases.
Originally posted by Jcaputo
Scalability is the ability to grow the application as usage/load increases.
Thank you. I am not completely sure what it exactly means, but at least I get some idea :)
I have tried to used an encrypted password to login but it will not let me, it will only login when the password is in clear-text in the db, does anyone know how to get around this?
when i inserted the user, i put the password in like this MD5(password) and it encrypted, but would not let me login. i typed in just password with no encryption and it let me login.