My small white a figure after the login, after to assign values to the User class in figure 2, check the original password will always show the original password mistake, u.P assWord value has been null why ah?
CodePudding user response:
Good job
CodePudding user response:
Good job
CodePudding user response:
reference 1st floor qzjsmile response: looks like very fierce My small white a ... CodePudding user response:
You copy the code your own class, it is a new class, new out, of course, no assignment is null CodePudding user response:
Don't see where you are to give the User the assignment, CodePudding user response:
New new object attributes of objects if there is no initial value can be assigned in the structure of the user name password you can overload a new tune this structure can both properties CodePudding user response:
You will you class instead of a static class, you can need not New, direct assignment CodePudding user response:
New User has no value, you assign a value to it, filled the account login, give userID account assignment, write a check the database query method, according to the account to check the password, the password assigned to the password, so the password will have value, CodePudding user response:
refer to the eighth floor why_are_you_so_diao_ response: new you tell the User has no value, you assign a value to it, filled the account login, give userID account assignment, working on a database query method, according to the account to check the password, the password assigned to the password, so that the password have value, Log in to fill the account, give the username, account assignment, CodePudding user response:
The User u=new User (); Write on the outside of the method