User Authentication With patUser (part 2) (
Page 1 of 13 )
In this second part, find out how you can use the patUser API to
view, add, edit and delete users (and user attributes) from your user
database.In the first part of this article, I focused almost entirely on how patUser
could simplify the task of adding authentication to your site. I explained the
patUser database schema, ran you through the process of initializing a patUser
object instance and linking it to a database and template engine, and showed you
how built-in patUser methods could simplify the task of verifying user
credentials and writing login and logout scripts.
However, patUser can
do a lot more than just handle user authentication - the library also comes with
a large number of methods designed to make the task of managing user data as
simple and efficient as possible. Over the course of this second installment,
I'm going to show you how these methods work, and how they can be used to
quickly create scripts to view, add, edit and delete users (and user attributes)
from your database. Keep reading!