Weblogin categories - Introduction (1)
Weblogin category is done before mate in a module of the module, then the item in the request authentication functions, but there are still a number of similar projects, in the waiters think it is not the function of this creates a module that is the case then the rest always do the same thing, that more than Meijin ah, but the most important thing is people think lazy bar, huh.
Back
When a user logged in, we need to fill in his login name and password, and then to the background database comparison, if the value allows the user to see the requested pages, and if not, then I am sorry you are illegal users, out!
That time is look at a software engineering colleagues inside details on the components and component technology. I would like now is to sell the school. Oh
We can be a user as an independent entity, and the user information can be regarded as the individual properties. As an individual we need it for the information, such as operating amended. Why do we can not take this information into a category?
With these ideas we can do after such a plan.
Following is the functional requirements of such
? Islogin attributes: the users attribute the success of the landing. Attribute type bool, CD -
? Name attribute: The property has been used to reflect the successful landing of the names of users. Attribute type string, CD -
? UserPower attributes: The property has been used to reflect the successful landing user permissions. For the string attribute type, read-only.
? Pwd attributes: The attributes used for input to login passwords. Attribute type string, just write
? Uid attributes: The attributes used for input to login ID, the type of property for the string, only to write
? Message attributes: the attributes for internal output error messages. Attribute type string, CD-such methods are as follows:
? WebLogin method: This method has two parameters, parameters of type string, namely the database connection string of user information and name of the database table. This method did not return to duty.
? Start method: This method does not parameters, return values for bool type, when returns true when the user has successfully logged returns false when the user unknown success. Show Message attributes can be associated information.
? DataBaseColumn method: This method has four parameters, parameters of type string, and there is no return value. The method used for input to the corresponding user information in the data table listing, the order for a user ID, user passwords, user names and user rights.
? ChangePwd method: This method is a parameter, the string type parameters, return values for bool type, when returned to the true success that users password changes to return false, said user passwords without success. Specific reasons may attribute Show Message received relevant information.
? UserPower attributes: the attribute used to reflect the user's relevant authority, read-only. Return value for "A" super-user, "P" Power users, "U" User users.








0 Comments to “Weblogin categories - Introduction (1)”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.