Home arrow PHP arrow Adding Users for a Project Management Application

Adding Users for a Project Management Application

In the last article we looked at how a user is authenticated and granted access if the login credentials are correct. Now, for any user to log in he or she needs to exist in the database. To put user information in the database we will need scripts through which we can do just that, hence the topic of this article. This is the third part of a four-part series on the authentication details involved in building a project management application.

TABLE OF CONTENTS:
  1. Adding Users for a Project Management Application
  2. The Script
  3. Script Explained
  4. Checkformat Function
By: David Web
Rating: starstarstarstarstar / 1
August 11, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

The next two scripts that we will be discussing will enable administrators to create a new user, with a password that is auto generated. We will look in detail at how it is done.

The new user script

This script is responsible for creating the user. A user can only be created by an administrator. This is common practice in any intranet environment. A new employee will usually be assigned a username and password by the systems administrator or someone with equivalent authority. And since we are using this application on the assumption that it is going to be used in an intranet, we are going to follow the same tradition.

The password will be auto generated by a function that I've included in the functions file. So the moment this registration script is activated, a seven-character-long password will be generated. This password will then be sent to the user when the administrator finishes creating the user profile. This script is located in the admin section of the application. In the next section you will see the code that makes creating a new user possible.



 
 
>>> More PHP Articles          >>> More By David Web
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: