Invention content
In view of this, a kind of user registering method of the application offer and device.
Specifically, the application is achieved by the following technical solution:
A kind of user registering method, the method includes:
N number of password input by user is obtained by the Password Input frame of register interface, wherein N is the natural number more than 2;
Judge to whether there is at least two identical passwords in N number of password;
It is there are when at least two identical passwords in N number of password, identical password is close as the registration of user
Code.
Further, N is equal to 3,
The Password Input frame by register interface obtains N number of password input by user:
First password input by user is obtained by the first password input frame of register interface;
The second password input by user is obtained by the second Password Input frame of register interface;
In the first password and inconsistent second password, is provided in register interface and input third for user
The third Password Input frame of password;
Third password input by user is obtained by the third Password Input frame;
It is described to judge to whether there is at least two identical passwords in N number of password, exist extremely in N number of password
When few two identical passwords, include using identical password as the log-in password of user:
Judge whether the third password is consistent with the first password or the second password;
If the third password is consistent with the first password or the second password, using the third password as user
Log-in password.
Further, described that the third Password Input frame packet that third password is inputted for user is provided in register interface
It includes:
The first password input frame and the second Password Input frame are hidden in register interface, and it is close to provide the third
Code input frame.
Further, the method further includes:
If the third password and the first password are inconsistent, and also inconsistent with second password, then hide
The third Password Input frame empties the first password input frame and the second Password Input frame, to prompt user again
Carry out Password Input.
Further, the method further includes:
When providing the third Password Input frame, output character is prompted to prompt user to carry out Password Input again.
A kind of user's registration device, described device include:
Acquiring unit obtains N number of password input by user, wherein N is more than 2 by the Password Input frame of register interface
Natural number;
Judging unit judges to whether there is at least two identical passwords in N number of password, in N number of password
There are when at least two identical passwords, using identical password as the log-in password of user.
Further, N is equal to 3,
The acquiring unit obtains first password input by user by the first password input frame of register interface, passes through
Second Password Input frame of register interface obtains the second password input by user;
In the first password and inconsistent second password, the acquiring unit provided in register interface for
User inputs the third Password Input frame of third password, and close by third Password Input frame acquisition third input by user
Code;
The judging unit judges whether the third password is consistent with the first password or the second password, described
When third password is with the first password or consistent the second password, using the third password as the log-in password of user.
Further, the acquiring unit hides the first password input frame and described second close in register interface
Code input frame, provides the third Password Input frame.
Further, the judging unit, it is inconsistent in the third password and the first password, and with described second
When password is also inconsistent, the third Password Input frame is hidden, the first password input frame is emptied and second password is defeated
Enter frame, to prompt user to re-start Password Input.
Further, the acquiring unit is further used for when providing the third Password Input frame, and output character carries
Show to prompt user to carry out Password Input again.
The application obtains at least three password input by user when user's registration it can be seen from above description,
Then judged, when there are at least two identical passwords, using identical password as the log-in password of user, to carry
The efficiency that password is arranged in high user registration course.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of consistent device and method of some aspects be described in detail in claims, the application.
It is the purpose only merely for description specific embodiment in term used in this application, is not intended to be limiting the application.
It is also intended to including majority in the application and "an" of singulative used in the attached claims, " described " and "the"
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
The application provides a kind of user's registration scheme, can effectively improve user's effect that password is arranged in registration process
Rate.
Referring to FIG. 1, the application provides a kind of user registering method, the described method comprises the following steps:
Step 101, N number of password input by user is obtained by the Password Input frame of register interface, wherein N is more than 2
Natural number.
Step 102, judge to whether there is at least two identical passwords in N number of password.
Step 103, in N number of password there are when at least two identical passwords, using identical password as user
Log-in password.
The application obtains at least three password input by user when user's registration it can be seen from above description,
Then judged, when there are at least two identical passwords, using identical password as the log-in password of user, to carry
The efficiency that password is arranged in high user registration course.
The specific implementation of the application is described in detail with reference to embodiment.
Referring to FIG. 2, in a kind of embodiment of the application user's registration interface schematic diagram.In the present embodiment, pass through note
Volume interface provides three Password Input frames to the user, respectively:The input frame of one " login password ", two " confirm that login is close
The input frame of code ".Then three passwords input by user are obtained by these three Password Input frames respectively, and judges that these three are close
Code whether there is at least two identical passwords.Generally, in registration, user is shown in Password Input after inputting password
Password in frame is dark text, such as:" * " number, even if so user has struck mistake its password for wanting to set up, user will not perceive
It arrives, can only can just be found when Client-Prompt password is inconsistent.However, during primary registration, user is continuous
The probability for striking wrong password three times is minimum, so during Password Input three times, it is identical close often to have at least two
Code, at this point, using the identical password as the log-in password of user, rather than prompt the inconsistent needs of user password again defeated
Enter, substantially increases the probability that password is arranged in registration process.
It should be noted that in this application, N number of password input by user is obtained by the Password Input frame of register interface
Afterwards, when judging to whether there is at least two identical passwords in N number of password, those skilled in the art can pass through known skill
Relevant way in art judged, such as:After obtaining N number of password, it can be determined that N number of password is after carrying out Hash operation
Value whether identical judge the consistent situation of N number of password.The application is without limitation.
In a kind of preferred embodiment of the application, it is contemplated that for user during registration, the password inputted twice is not
Unanimous circumstances are relatively fewer, and the application designs first provides two Password Input frames in register interface, when user is close at the two
When the password inputted in code input frame is inconsistent, the Password Input frame that third time inputs password is provided to the user.
Specifically, A is please referred to Fig.3, the schematic diagram at initial registration interface in a kind of preferred embodiment of the application.It is described
The schematic diagram at initial registration interface is similar with register interface schematic diagram in the prior art, provides to the user there are two Password Input
Frame, respectively:The input frame of the input frame of " login password " and " confirming login password ".In this application, it " is logged in close by described in
The input frame of code " is known as first password input frame, and the input frame for " confirming login password " by described in is known as the second Password Input frame.
Certainly, the register interface has been also possible that other log-on messages, such as:E-mail address, phone number, contact address etc.,
This is no longer going to repeat them by the application.
In the present embodiment, become non-from focus condition in the first password input frame and the second Password Input frame
After focus condition, first password input by user is obtained by the first password input frame, passes through second Password Input
Frame obtains the second password input by user, then judges whether the first password and second password are consistent, if described
First password is consistent with second password, then can using the first password or the second password as the log-in password of user,
When user clicks the registration button of register interface, the log-on message of user is sent to server-side, is wrapped in the log-on message
The log-in password is included.
If the first password and second password are inconsistent, provided in register interface for user's input the
The third Password Input frame of three passwords.Specifically, B is please referred to Fig.3, third Password Input is provided in a kind of embodiment of the application
The register interface schematic diagram of frame.In the present embodiment, it if the first password and second password are inconsistent, is registering
Provide the third Password Input frame different from the first password input frame and the second Password Input frame on interface to the user,
And the third Password Input frame can be set to focus condition.It further, can also be defeated in the offer third password
While entering frame, entered passwords differ to prompt before user for input text prompt, needs to carry out Password Input again.
C is please referred to Fig.3, the register interface schematic diagram of third Password Input frame is provided in the application another kind embodiment.
In the present embodiment, if the first password and second password are inconsistent, hide the first password input frame and
The second Password Input frame only provides the third Password Input frame, so that user inputs third password.It needs to illustrate
It is to hide the first password input frame and the second Password Input frame in the present embodiment, is not that removing described first is close
Code and second password, but cache the first password and second password, so as to the follow-up and described third password into
Row comparison.Certainly, those skilled in the art can also take other modes to provide the third Password Input frame, this Shen to the user
It please be without limitation.
After user inputs third password in the third Password Input frame, third password input by user is obtained,
Then judge whether the third password is consistent with the first password or the second password, if the third password and described
First password is consistent or the third password is consistent with second password, i.e., there are two in three passwords input by user
A identical password, then using the third password as user password.
Further, in extreme circumstances, if the third password and the first password are inconsistent, and the third
Password and second password are also inconsistent, then the third Password Input frame can be hidden, and empty the first password
Input frame and the second Password Input frame prompt user to re-start Password Input.It should be noted that in such case
Under, and cached without password, but restart to execute step 101.Certainly, in this case, the 4th can also be provided
Password Input frame, so that user inputs the 4th password and judges, the application is without limitation.
During actually realizing, when N is more than 3, such as:N is equal to 5, can provide 5 to the user by register interface
A Password Input frame.Two Password Input frames can also be first provided to the user, input by user according to realization process above
When two passwords mismatch, then provide the Password Input frame of third, the 4th and the 5th to the user, the application is without limitation.
In a kind of realization of the application, it can be judged in N number of password with the presence or absence of at least to execute by server-side
The process of two identical passwords, such as:After user inputs password in Password Input frame, client sends the password
To server-side, so that server-side is judged;Or client accesses the cloud service provided by server, the behaviour such as all calculating
It is to be executed in server-side.In a kind of realization of the application, it can judge whether deposit in N number of password by client
In at least two identical passwords, if there is at least two identical passwords, then using identical password as the registration of user
Password is sent to server-side and is registered.
The application obtains at least three password input by user when user's registration it can be seen from above description,
Then judged, when there are at least two identical passwords, using identical password as the log-in password of user, to carry
The efficiency that password is arranged in high user registration course.
Corresponding with the embodiment of the application user registering method, present invention also provides a kind of realities of user's registration device
Apply example.Device described herein can also be realized by software realization by way of hardware or software and hardware combining.
For implemented in software, the application device can be used as the device on a logical meaning, be the processor by equipment where it
Corresponding computer program instructions in nonvolatile memory are read what operation in memory was formed, which can be integrated
Or operate in client or server-side.
It please refers to Fig.4 and Fig. 5, the application provides a kind of user's registration device 400, described device 400 includes:It obtains single
Member 401, judging unit 402.
Wherein, the acquiring unit 401 obtains N number of password input by user by the Password Input frame of register interface,
In, N is the natural number more than 2;
The judging unit 402 judges to whether there is at least two identical passwords in N number of password, described N number of
There are when at least two identical passwords in password, using identical password as the log-in password of user.
Further, N is equal to 3,
The acquiring unit 401 obtains first password input by user by the first password input frame of register interface, leads to
The the second Password Input frame for crossing register interface obtains the second password input by user;
In the first password and inconsistent second password, the acquiring unit 401 provides in register interface
The third Password Input frame of third password is inputted for user, and obtains input by user the by the third Password Input frame
Three passwords;
The judging unit 402 judges whether the third password is consistent with the first password or the second password, in institute
When stating third password with the first password or consistent the second password, using the third password as the log-in password of user.
Further, the acquiring unit 401 hides the first password input frame and described second in register interface
Password Input frame provides the third Password Input frame.
Further, the judging unit 402, it is inconsistent in the third password and the first password, and with it is described
When second password is also inconsistent, the third Password Input frame is hidden, empties the first password input frame and described second close
Code input frame, to prompt user to re-start Password Input.
Further, the acquiring unit 401 is further used for when providing the third Password Input frame, output text
Word is prompted to prompt user to carry out Password Input again.
The function of each unit and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus
Realization process, details are not described herein.
The foregoing is merely the preferred embodiments of the application, not limiting the application, all essences in the application
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the application protection god.