> 
> To prevent the users from accessing your admin site you can add some
> code like
> 
> $_midgard = mgd_get_midgard();
> $_user = mgd_get_person($_midgard->user);
> 
> if (!in_array($_user->username,array("list","of","trusted","users")))
>    exit ("Access denied.");
> 


Or:

1. create user
2. create some another record for user
preferences, article , topic, whatever to store user pass in plain text
3. change user pass
4. Define where user can be logged and what he can make
5. Auth Your user when it is needed taking pass from Your special record
(it can be even some user record field)

What you get this way?

1. User has its auth only when it is really needed
2. When having big site with many users , You may have special 
option "I forgot my pass"
3. User is almost never logged to database 
4. Create something like session while storin all data in midgard database 


Piotras


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to