Summary of the invention
In view of this, the application provides a kind of user registering method and device.
Particularly, the application is achieved by the following technical solution:
A kind of user registering method, described method comprises:
Obtained N number of password of user's input by the Password Input frame of register interface, wherein, N be greater than 2 natural number;
Judge whether to exist in described N number of password at least two identical passwords;
When there is at least two identical passwords in described N number of password, using the log-in password of identical password as user.
Further, N equals 3,
N number of password that the described Password Input frame by register interface obtains user's input comprises:
The first password of user's input is obtained by the first password input frame of register interface;
The second password of user's input is obtained by the second Password Input frame of register interface;
Described first password and described second password inconsistent time, register interface provides and can input the 3rd Password Input frame of the 3rd password for user;
The 3rd password of user's input is obtained by described 3rd Password Input frame;
Describedly judge whether to exist in described N number of password at least two identical passwords, when there is at least two identical passwords in described N number of password, the log-in password of identical password as user comprised:
Judge that whether described 3rd password is consistent with described first password or the second password;
If described 3rd password is consistent with described first password or the second password, then using the log-in password of described 3rd password as user.
Further, described the 3rd Password Input frame that can user be supplied to input the 3rd password that provides in register interface comprises:
Register interface hides described first password input frame and described second Password Input frame, described 3rd Password Input frame is provided.
Further, described method also comprises:
If described 3rd password and described first password inconsistent, and and described second password also inconsistent, then hide described 3rd Password Input frame, empty described first password input frame and described second Password Input frame, re-start Password Input to point out user.
Further, described method also comprises:
When providing described 3rd Password Input frame, output character prompting is to point out user again to carry out Password Input.
A kind of user's register device, described device comprises:
Acquiring unit, obtains N number of password of user's input by the Password Input frame of register interface, wherein, N be greater than 2 natural number;
Judging unit, judges whether to exist in described N number of password at least two identical passwords, when there is at least two identical passwords in described N number of password, using the log-in password of identical password as user.
Further, N equals 3,
Described acquiring unit, obtains the first password of user's input by the first password input frame of register interface, obtained the second password of user's input by the second Password Input frame of register interface;
Described first password and described second password inconsistent time, described acquiring unit provides and can input the 3rd Password Input frame of the 3rd password for user in register interface, and obtains the 3rd password of user's input by described 3rd Password Input frame;
Described judging unit, judges that whether described 3rd password is consistent with described first password or the second password, when described 3rd password is consistent with described first password or the second password, using the log-in password of described 3rd password as user.
Further, described acquiring unit, register interface hides described first password input frame and described second Password Input frame, provides described 3rd Password Input frame.
Further, described judging unit, described 3rd password and described first password inconsistent, and and described second password is also inconsistent time, hide described 3rd Password Input frame, empty described first password input frame and described second Password Input frame, re-start Password Input to point out user.
Further, described acquiring unit, is further used for when providing described 3rd Password Input frame, and output character prompting is to point out user again to carry out Password Input.
Described as can be seen from above, the application, when user's registration, obtains at least three passwords of user's input, then judge, when the password that existence at least two is identical, using the log-in password of identical password as user, thus improve the efficiency that in user registration course, password is arranged.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the application.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that some aspects of the application are consistent.
Only for describing the object of specific embodiment at term used in this application, and not intended to be limiting the application." one ", " described " and " being somebody's turn to do " of the singulative used in the application and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the application, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from the application's scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " or " in response to determining ".
The application provides a kind of user's registration scenarios, effectively can improve user's efficiency that password is arranged in registration process.
Please refer to Fig. 1, the application provides a kind of user registering method, said method comprising the steps of:
Step 101, obtains N number of password of user's input by the Password Input frame of register interface, wherein, N be greater than 2 natural number.
Step 102, judges whether to exist in described N number of password at least two identical passwords.
Step 103, when there is at least two identical passwords in described N number of password, using the log-in password of identical password as user.
Described as can be seen from above, the application, when user's registration, obtains at least three passwords of user's input, then judge, when the password that existence at least two is identical, using the log-in password of identical password as user, thus improve the efficiency that in user registration course, password is arranged.
The specific implementation of the application is described in detail below in conjunction with embodiment.
Please refer to Fig. 2, the schematic diagram of user's register interface in a kind of embodiment of the application.In the present embodiment, provide three Password Input frames by register interface for user, be respectively: the input frame of " login password ", the input frame of two " confirmation login passwords ".Then obtain three passwords of user's input respectively by these three Password Input frames, and judge whether these three passwords exist at least two identical passwords.Generally, when registering, user's password be presented in Password Input frame after input password is dark text, such as: " * " number, so even if user has struck wrong, it wants the password that arranges, and user also can not perceive, and just can only find when Client-Prompt password is inconsistent.But, in the process once registered, user is continuous, and to strike the probability of wrong password for three times minimum, so in the process of three Password Inputs, often there are at least two identical passwords, now, using the log-in password of described identical password as user, instead of the inconsistent needs of prompting user cipher re-enter, and substantially increase the probability that in registration process, password is arranged.
It should be noted that, in this application, after obtaining N number of password of user's input by the Password Input frame of register interface, when judging whether to exist in described N number of password at least two identical passwords, those skilled in the art can be judged by the relevant way in known technology, such as: after obtaining N number of password, the whether identical consistent situation judging described N number of password of the value of described N number of password after carrying out Hash operation can be judged.The application does not limit this.
In a kind of preferred embodiment of the application, consider that user is in the process of registration, the situation that entered passwords differ is relatively less, the application designs first provides two Password Input frames in register interface, when the password that user inputs in these two Password Input frames is inconsistent, for user provides the Password Input frame of third time input password.
Particularly, please refer to Fig. 3 A, the schematic diagram at a kind of preferred embodiment middle initial registration interface of the application.The schematic diagram at described initial registration interface is similar with register interface schematic diagram of the prior art, for user provides two Password Input frames, is respectively: the input frame of " login password " and the input frame of " confirmation login password ".In this application, the input frame of described " login password " is called first password input frame, the input frame of described " confirmation login password " is called the second Password Input frame.Certainly, described register interface also may include other log-on messages, such as: E-mail address, phone number, contact address etc., this is no longer going to repeat them for the application.
In the present embodiment, after described first password input frame and described second Password Input frame become non-focus state from focus condition, the first password of user's input is obtained by described first password input frame, the second password of user's input is obtained by described second Password Input frame, then judge that whether described first password is consistent with described second password, if described first password is consistent with described second password, then can using described first password or the second password log-in password as user, when user clicks the registration button of register interface, the log-on message of user is sent to service end, described log-in password is included in described log-on message.
If described first password and described second password inconsistent, then provide in register interface and can input the 3rd Password Input frame of the 3rd password for user.Particularly, please refer to Fig. 3 B, in a kind of embodiment of the application, provide the register interface schematic diagram of the 3rd Password Input frame.In the present embodiment, if described first password and described second password inconsistent, then in register interface for user provides the 3rd Password Input frame being different from described first password input frame and described second Password Input frame, and described 3rd Password Input frame can be set to focus condition.Further, can also while described 3rd Password Input frame be provided, to point out before user, entered passwords differ in input characters prompting, needs again to carry out Password Input.
Please refer to Fig. 3 C, in the another kind of embodiment of the application, provide the register interface schematic diagram of the 3rd Password Input frame.In the present embodiment, if described first password and described second password inconsistent, then hide described first password input frame and described second Password Input frame, described 3rd Password Input frame be only provided, input the 3rd password for user.It should be noted that, described first password input frame and described second Password Input frame is hidden in the present embodiment, be not remove described first password and described second password, but first password described in buffer memory and described second password, so that follow-up and described 3rd password contrasts.Certainly, those skilled in the art also can take other modes to provide described 3rd Password Input frame for user, and the application does not limit this.
After user inputs the 3rd password in described 3rd Password Input frame, obtain the 3rd password of user's input, then judge that whether described 3rd password is consistent with described first password or the second password, if described 3rd password is consistent with described first password, or described 3rd password is consistent with described second password, there are two identical passwords in three passwords of i.e. user's input, then using described 3rd password as user cipher.
Further, in extreme circumstances, if described 3rd password and described first password inconsistent, and described 3rd password and described second password also inconsistent, so can hide described 3rd Password Input frame, and emptying described first password input frame and described second Password Input frame, prompting user re-starts Password Input.It should be noted that, in this case, do not carry out password buffer memory, but restart to perform step 101.Certainly, in this case, also can provide the 4th Password Input frame, input the 4th password for user and judge, the application does not limit this.
In the process that reality realizes, when N is greater than 3, such as: N equals 5, can by register interface for user provides 5 Password Input frames.Also can according to implementation procedure above, first for user provides two Password Input frames, when two passwords of user's input do not mate, then provide the 3rd, the 4th and the 5th Password Input frame for user, the application does not limit this.
In the one of the application realizes, the process judging whether to exist in described N number of password at least two identical passwords can be performed by service end, such as: after user inputs password in Password Input frame, described password is sent to service end by client, judges for service end; Or the cloud service that client-access is provided by server, the operation such as all calculating is all perform in service end.In the application's one realizes, can judge whether to exist in described N number of password at least two identical passwords by client, if there are at least two identical passwords, then send to service end to register as the log-in password of user in identical password.
Described as can be seen from above, the application, when user's registration, obtains at least three passwords of user's input, then judge, when the password that existence at least two is identical, using the log-in password of identical password as user, thus improve the efficiency that in user registration course, password is arranged.
Corresponding with the embodiment of the application's user registering method, present invention also provides a kind of embodiment of user's register device.Device described in the application can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.For software simulating, the application's device can be used as the device on a logical meaning, by the processor of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed, this device can be integrated or operate in client, or service end.
Please refer to Fig. 4 and Fig. 5, the application provides a kind of user's register device 400, and described device 400 includes: acquiring unit 401, judging unit 402.
Wherein, described acquiring unit 401, obtains N number of password of user's input by the Password Input frame of register interface, wherein, N be greater than 2 natural number;
Described judging unit 402, judges whether to exist in described N number of password at least two identical passwords, when there is at least two identical passwords in described N number of password, using the log-in password of identical password as user.
Further, N equals 3,
Described acquiring unit 401, obtains the first password of user's input by the first password input frame of register interface, obtained the second password of user's input by the second Password Input frame of register interface;
Described first password and described second password inconsistent time, described acquiring unit 401 provides and can input the 3rd Password Input frame of the 3rd password for user in register interface, and obtains the 3rd password of user's input by described 3rd Password Input frame;
Described judging unit 402, judges that whether described 3rd password is consistent with described first password or the second password, when described 3rd password is consistent with described first password or the second password, using the log-in password of described 3rd password as user.
Further, described acquiring unit 401, register interface hides described first password input frame and described second Password Input frame, provides described 3rd Password Input frame.
Further, described judging unit 402, described 3rd password and described first password inconsistent, and and described second password is also inconsistent time, hide described 3rd Password Input frame, empty described first password input frame and described second Password Input frame, re-start Password Input to point out user.
Further, described acquiring unit 401, is further used for when providing described 3rd Password Input frame, and output character prompting is to point out user again to carry out Password Input.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, within all spirit in the application and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.