Summary of the invention
In view of this, the application provides the management method and device of a kind of electronic account.
Specifically, the application is achieved by the following technical solution:
A kind of management method of electronic account, which comprises
Obtain former login name and new login name of the user again in bind request;
Search the electronic account of the former login name binding;
User is sent to based on electronic account described in the new login star;
Obtain the electronic account and login password in user's logging request;
When the login password is identical with the legal password of the electronic account, user is allowed to log in the electronics account
Number, and the login name that the electronic account is bound is updated to the new login name by the former login name.
Optionally, the method also includes:
When receiving includes that the password of former login name and new login name gives request for change, bound for the former login name
Electronic account triggering give verifying process for change with the unrelated password of the original login name;
When determining that user gives the verifying for verifying process for change by the password, by the electronics account of the former login name binding
Number legal password update be the password that resets of user, and by the login name of the electronic account by the former login name more
It is newly the new login name.
Optionally, the former login name includes: phone number, E-mail address;
The new login name also includes: phone number, E-mail address.
A kind of management method of electronic account, which comprises
Obtain former login name, new login name and the login password in user's logging request;
Obtain the legal password of the electronic account of the former login name binding;
Judge whether the login password is identical as the legal password;
If identical, user is allowed to log in the electronic account of the former login name binding, and the electronic account is tied up
Fixed login name is updated to the new login name by the former login name.
Optionally, the method also includes:
When receiving includes that the password of former login name and new login name gives request for change, triggering and the former login name without
The password of pass gives verifying process for change;
When determining that user gives the verifying for verifying process for change by the password, by the electronics account of the former login name binding
Number legal password update be the password that resets of user, and by the login name of the electronic account by the former login name more
It is newly the new login name.
A kind of managing device of electronic account, described device include:
First acquisition unit obtains former login name and new login name of the user again in bind request;
Account searching unit searches the electronic account of the former login name binding;
Login name transmission unit is sent to user based on electronic account described in the new login star;
Second acquisition unit, obtains electronic account and login password in user's logging request, and the electronic account is to use
Family is received based on the new login name;
First updating unit allows user to step on when the login password is identical with the legal password of the electronic account
The electronic account is recorded, and the login name that the electronic account is bound is updated to the new login name by the former login name.
Optionally, described device further include:
First trigger unit, when receiving includes that the password of former login name and new login name gives request for change, for institute
The electronic account for stating former login name binding triggers the password unrelated with the former login name and gives verifying process for change;
Second updating unit, when determining that user gives the verifying for verifying process for change by the password, by the former login
The legal password update of the electronic account of name binding is the password that resets of user, and by the login name of the electronic account by
The original login name is updated to the new login name.
Optionally, the former login name includes: phone number, E-mail address;
The new login name also includes: phone number, E-mail address.
A kind of managing device of electronic account, described device include:
4th acquiring unit obtains former login name, new login name and login password in user's logging request;
5th acquiring unit obtains the legal password of the electronic account of the former login name binding;
Password judging unit judges whether the login password is identical as the legal password;
Third updating unit allows user to log in the original and steps on when the login password is identical as the legal password
The electronic account of name binding is recorded, and the login name that the electronic account is bound is updated to the new login by the former login name
Name.
Optionally, described device further include:
Second trigger unit, when receiving includes that the password of former login name and new login name gives request for change, triggering with
The unrelated password of the original login name gives verifying process for change;
4th updating unit, when determining that user gives the verifying for verifying process for change by the password, by the former login
The legal password update of the electronic account of name binding is the password that resets of user, and by the login name of the electronic account by
The original login name is updated to the new login name.
Xindeng can be based on after user submits bind request again by the application server-side it can be seen from above description
The electronic account of record star's original login name binding is sent to user, and bind the electronic account after user successfully logs in
Login name is updated to the new login name by the former login name, and subsequent user can be used new login name and be logged in, entirely
Process releases the binding relationship of former login name without user manually, the use state of former login name is maintained without user, significantly
Improve the usage experience of user.
Specific embodiment
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 the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
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 to for same type of information being distinguished from each other out.For example, not departing from
In the case where 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 ".
Fig. 1 is a kind of flow diagram of the management method of electronic account shown in one exemplary embodiment of the application.
Referring to FIG. 1, the management method of the electronic account can be applied in server-side, include following steps:
Step 101, former login name and new login name of the user again in bind request are obtained.
In the present embodiment, when user registers electronic account in APP, phone number, E-mail address etc. can be used
Login name of people's communication information as electronic account.In one example, using user by phone number as login name, use
Family can input the phone number of oneself when registering electronic account.Client sends the registration for carrying the phone number
It requests to server-side, server-side can search the hand after getting the phone number in the registration request in account library
Whether machine number has bound existing electronic account, if bound, can return to the prompt information of conflict to client, visitor
Family end can export conflict prompt in turn, and guidance user re-enters phone number.If the unbound any electricity of the phone number
Sub- account, then server-side can verify the phone number, such as: it sends short message verification code and gives the phone number, such as
Fruit user inputs identical short message verification code by client, then can be confirmed and be verified, and then creates new electronic account,
Prompt user setting login password, and save the phone number and creation electronic account binding relationship into account library, after
Continuous user can be used the phone number as login name and log in above-mentioned electronic account, and processing and the realization of this part are referred to
The relevant technologies, this is no longer going to repeat them by the application.
It should be noted that server-side is when creating electronic account, it will usually generate unique account for the electronic account
ID, then by the binding of the phone number used when account ID, registration and the login password (i.e. legal password) of user setting
Relationship is stored in account library.The example for please referring to table 1, when certain user passes through registration using phone number 13812345678
When verifying, server-side creates new electronic account, and generates account ID:U1000001, then saves U1000001, phone number
13812345678 and user setting login password Adsa124 between binding relationship.
Account ID |
Phone number |
Legal password |
U1000001 |
13812345678 |
Adsa124 |
U1000002 |
13812345679 |
Dshkfaj2 |
Table 1
In the present embodiment, still for logging in entitled phone number, client can be mentioned in login page for user
For the button for binding phone number again, user interface shown in Fig. 2 is please referred to, if user does not replace cell-phone number,
The login password that its cell-phone number and setting can be used logs in, if user has replaced phone number, user can click and " tie up
Determine new cell-phone number " button, referring to FIG. 3, it includes that former cell-phone number input frame and new cell-phone number are defeated that client, which can be shown,
Enter the user interface of frame, user can click confirming button after inputting former cell-phone number and new cell-phone number, and client is in turn
Bind request is sent again to server-side, server-side is after receiving the bind request again, the available original that it is carried
Cell-phone number and new cell-phone number.
Step 102, the electronic account of the former login name binding is searched.
Step 103, user is sent to based on electronic account described in the new login star.
In the present embodiment, the former login name and new login name that server-side carries in getting bind request again it
Afterwards, the electronic account that the former login name binding can be searched in account library, may then based on the new login star institute
Electronic account is stated, such as: the unique account ID of the electronic account is sent to user, and saves the transmission note of the electronic account
Record.
In one example, still for logging in entitled phone number, server-side can search former mobile phone in account library
Then the account ID of number binding is sent the account ID found in new cell-phone number by way of short message.
In another example, when logging in entitled E-mail address, server-side can search primary electron postal in account library
The account ID of case binding, is then sent the account ID found in new E-mail address by way of E-mail.
Step 104, the electronic account and login password in user's logging request are obtained, the electronic account is that user is based on
What the new login name received.
In the present embodiment, user can pass through account after the account ID for receiving electronic account by new login name
ID and pre-set login password are logged in.Optionally, in one example, user interface shown in Fig. 3, user are based on
After clicking confirming button, client can show login page, and user can input account ID and be stepped in the login page
Record password.
Step 105, when the login password is identical with the legal password of the electronic account, allow described in user's login
Electronic account, and the login name that the electronic account is bound is updated to the new login name by the former login name.
In the present embodiment, server-side is stepped on described in judgement after the account ID and login password for receiving client transmission
Whether identical as the legal password that account ID in account library is bound password is recorded, if it is not the same, can then return to client
The information of login failure allows user to log in the corresponding electronic account of account ID if identical, and by the account in account library
The login name of number ID binding is updated to the new login name.
Specifically, server-side is after receiving the logging request based on account ID and login password, if it is determined that described to step on
Record password is identical as the legal password that the account ID is bound, then can decide whether the transmission note for preserving the electronic account
Record, if do not saved, illustrates that user did not submitted bind request again, can terminate the application's after allowing user to log in
Follow-up process.If having saved the transmission record of the electronic account, it can be said that bright user submitted bind request again,
After allowing user to log in, new login name can be obtained from transmission record, then be stepped on what the electronic account of user was bound
Record name is updated to the new login name got by the former login name.
Xindeng can be based on after user submits bind request again by the application server-side it can be seen from above description
The electronic account of record star's original login name binding is sent to user, and bind the electronic account after user successfully logs in
Login name is updated to the new login name by the former login name, and subsequent user can be used new login name and be logged in, entirely
Process releases the binding relationship of former login name without user manually, the use state of former login name is maintained without user, significantly
Improve the usage experience of user.
Fig. 4 is a kind of flow diagram of the management method of electronic account shown in one exemplary embodiment of the application.
Referring to FIG. 4, the management method of the electronic account can be applied in server-side, include following steps:
Step 401, former login name, new login name and the login password in user's logging request are obtained.
In the present embodiment, login name may include the personal communication information of the users such as phone number, E-mail address.User
Electronic account can be registered using above-mentioned login name in advance, the process of registration can refer to the implementation in abovementioned steps 101,
This is no longer going to repeat them by the application.
In the present embodiment, for logging in entitled phone number, client can be provided in login page for user
For binding the login button of phone number again, user interface shown in fig. 5 is please referred to, if user does not replace cell-phone number,
The login password that its cell-phone number and setting then can be used logs in, if user has replaced phone number, user can be clicked
The button of " binding new cell-phone number logs in ", referring to FIG. 6, it includes former cell-phone number input frame, new cell-phone that client, which can be shown,
The user interface of number input frame and login password input frame, user can click confirming button after inputting relevant information, visitor
Family end can send logging request to server-side in turn, and after receiving the logging request, available its carries server-side
Former cell-phone number, new cell-phone number and login password.
Step 402, the legal password of the electronic account of the former login name binding is obtained.
In the present embodiment, server-side can search the electronic account of former login name binding in account library, and obtaining should
The legal password of electronic account.Such as: server-side searches the legal close of the electronic account of former phone number binding in account library
Code.
Step 403, judge whether the login password is identical as the legal password, if identical, can execute step
Rapid 404.
Based on abovementioned steps 402, after getting the legal password, server-side judge the login password whether with institute
State that legal password is identical, if it is not the same, can then return to the message of login failure to client.If identical, can hold
Row step 404.
Step 404, when determining that the login password is identical as the legal password, user is allowed to log in described former log in
The electronic account of name binding, and the login name that the electronic account is bound is updated to the new login by the former login name
Name.
Still for logging in entitled phone number, based on the judging result of abovementioned steps 403, when the login password with obtain
When the legal password got is identical, the electronic account that user logs in the former phone number binding can permit, and by account
The phone number of electronic account binding is updated to new cell-phone number by the former phone number in number library, and subsequent user can make
It is logged in new cell-phone number.
The application server-side can be in the electronic account of login password and former login name binding it can be seen from above description
Legal password it is identical when, allow user to log in, and login name that the electronic account is bound is updated to by the former login name
New login name in logging request, subsequent user can be used new login name and logged in.Whole process solves manually without user
Except the binding relationship of former login name, the use state of former login name is maintained without user, user can be real by register
The binding again of existing login name, greatly improves the usage experience of user.
Optionally, in another example, when user replaces former login name, the application also provides the password of electronic account
Give process for change.Still for logging in entitled phone number, it is assumed that user has registered the electronic account of certain APP using phone number 1,
Phone number is changed to phone number 2 by subsequent user, since user is not logged in the electronic account for a long time, has led to user
The legal password of the electronic account is had forgotten, at this point, user, which can choose, gives request for change based on the password bound again.
In practical applications, client can provide the option and bound secret is looked for again that ordinary password is given for change for user
The option returned, if user does not replace phone number, such as: user still uses phone number 1, can when user forgets Password
To select ordinary password to give for change, server-side can send short message to phone number 1 to carry out authentication, and be verified
User is allowed to reset password afterwards.
If phone number is changed to phone number 2 by user, user can choose what bound secret again was given for change
Option, client can show include former cell-phone number input frame and new cell-phone input frame input interface, and in user
Transmission password gives request for change to server-side after inputting former cell-phone number and new cell-phone number.Server-side is given for change receiving the password
After request, the electronic account of former cell-phone number binding, the i.e. electronic account of the binding of phone number 1 can be searched in account library, so
The password unrelated with phone number 1, which is triggered, for the electronic account afterwards gives verifying process for change.
In the present embodiment, the mode verified based on phone number 1 is that password relevant to phone number 1 is given for change and tested
Process is demonstrate,proved, such as: short message is sent to phone number 1 to be verified.The password unrelated with phone number 1 gives verifying for change
Process is not need to carry out the process that password is given for change by phone number 1, may include having: being given for change by the password of user setting
Problem is verified, and the mode for sending identifying code to the E-mail address of user setting is verified etc., and the application does not make spy to this
Different limitation.For example, server-side can give problem for change to the password that client returns to user setting, such as: you are favorite
What one book is, your birthplace is where, and can give above-mentioned password for change problem shows user to client in turn, so as to
User fills in.
In the present embodiment, when determining that user gives the verifying for verifying process for change by the password, it can permit user
Password, server-side and then the password that can be reset the legal password update of the electronic account for user are reset, together
When, the login name of the electronic account can also be updated to the new login name by the former login name by server-side, such as: by institute
The login name for stating the electronic account of the binding of phone number 1 is updated to phone number 2 by phone number 1, and subsequent user can be used
Phone number 2 and newly-installed password are logged in.
It can be seen from above description the application server-side receive include former login name and new login name password
When giving request for change, the password unrelated with the former login name is triggered for the electronic account that the former login name is bound and gives verifying for change
Illegal user can be effectively prevented steal by way of stealing former login name the electronic account of user in process, safeguards user
Account number safety.Meanwhile server-side can also be when user gives the verifying of verifying process for change by the password, by the electronics account
Number login name the new login name is updated to by the former login name, subsequent user can be used new login name and be logged in,
Bind request is resubmited without user, greatly improves the usage experience of user.
Corresponding with the embodiment of the management method of aforementioned electronic account, present invention also provides the management of electronic account dresses
The embodiment set.
The embodiment of the managing device of the application electronic account can be applied in server-side.Installation practice can pass through
Software realization can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, it anticipates as a logic
Device in justice is to be read computer program instructions corresponding in nonvolatile memory by the processor of server-side where it
Get what operation in memory was formed.For hardware view, as shown in fig. 7, for where the managing device of the application electronic account
A kind of hardware structure diagram of server-side, in addition to processor shown in Fig. 7, memory, network interface and nonvolatile memory it
Outside, the server-side in embodiment where device can also include other hardware, to this generally according to the actual functional capability of the server-side
It repeats no more.
Fig. 8 is a kind of block diagram of the managing device of electronic account shown in one exemplary embodiment of the application.
Referring to FIG. 8, the managing device 800 of the electronic account can be applied in aforementioned server-side shown in Fig. 7, packet
Included: first acquisition unit 801, account searching unit 802, login name transmission unit 803, second acquisition unit 804, first are more
New unit 805, the first trigger unit 806 and the second updating unit 807.
Wherein, the first acquisition unit 801 obtains former login name and new login name of the user again in bind request;
The account searching unit 802 searches the electronic account of the former login name binding;
The login name transmission unit 803 is sent to user based on electronic account described in the new login star;
The second acquisition unit 804 obtains electronic account and login password in user's logging request, the electronics account
It number is that user is received based on the new login name;
First updating unit 805 allows when the login password is identical with the legal password of the electronic account
User logs in the electronic account, and the login name that the electronic account is bound is updated to the Xindeng by the former login name
Record name.
First trigger unit 806, when receiving includes that the password of former login name and new login name gives request for change,
The password unrelated with the former login name, which is triggered, for the electronic account that the former login name is bound gives verifying process for change;
Second updating unit 807 will be described when determining that user gives the verifying for verifying process for change by the password
The password that the legal password update of the electronic account of former login name binding resets for user, and stepping on the electronic account
Record name is updated to the new login name by the former login name.
Fig. 9 is a kind of block diagram of the managing device of electronic account shown in one exemplary embodiment of the application.
Referring to FIG. 9, the managing device 900 of the electronic account can be applied in aforementioned server-side shown in Fig. 7, packet
It has included: the 4th acquiring unit 901, the 5th acquiring unit 902, the password judging unit 903, third updating unit 904, second
Trigger unit 905 and the 4th updating unit 906.
Wherein, the 4th acquiring unit 901 obtains the former login name in user's logging request, new login name and steps on
Record password;
5th acquiring unit 902 obtains the legal password of the electronic account of the former login name binding;
The password judgement single 903, judges whether the login password is identical as the legal password;
The third updating unit 904 allows user to log in institute when the login password is identical as the legal password
It states the electronic account of former login name binding, and login name that the electronic account is bound is updated to by the former login name described
New login name.
Second trigger unit 905, when receiving includes that the password of former login name and new login name gives request for change,
It triggers the password unrelated with the former login name and gives verifying process for change;
4th updating unit 906 will be described when determining that user gives the verifying for verifying process for change by the password
The password that the legal password update of the electronic account of former login name binding resets for user, and stepping on the electronic account
Record name is updated to the new login name by the former login name.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.