Summary of the invention
In view of this, the application provides management method and the 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, described method includes:
Obtain the former login name in user's bind request again and new login name;
Search the electronic account of described former login name binding;
It is sent to user based on electronic account described in described new login star;
Obtain the electronic account in user's logging request and login password;
When described login password is identical with the legal password of described electronic account, it is allowed to user logs in described
Electronic account, and the login name bound by described electronic account is updated to described Xindeng by described former login name
Record name.
Optionally, described method also includes:
When receiving the password including former login name and new login name and giving request for change, former step on for described
The electronic account of record name binding triggers the password unrelated with described former login name and gives checking flow process for change;
When determining that user gives the checking of checking flow process for change by described password, described former login name is bound
The legal password update of electronic account be the password that user resets, and stepping on described electronic account
Record name is updated to described new login name by described former login name.
Optionally, described former login name includes: phone number, E-mail address;
Described new login name also includes: phone number, E-mail address.
A kind of management method of electronic account, described method includes:
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 described former login name binding;
Judge that described login password is the most identical with described legal password;
If identical, then user is allowed to log in the electronic account of described former login name binding, and by described electricity
The login name of sub-account binding is updated to described new login name by described former login name.
Optionally, described method also includes:
When receiving the password including former login name and new login name and giving request for change, trigger former with described
Checking flow process given for change by the unrelated password of login name;
When determining that user gives the checking of checking flow process for change by described password, described former login name is bound
The legal password update of electronic account be the password that user resets, and stepping on described electronic account
Record name is updated to described new login name by described former login name.
A kind of managing device of electronic account, described device includes:
First acquiring unit, obtains the former login name in user's bind request again and new login name;
Account searches unit, searches the electronic account of described former login name binding;
Login name transmitting element, is sent to user based on electronic account described in described new login star;
Second acquisition unit, obtains the electronic account in user's logging request and login password, described electronics
Account is that user receives based on described new login name;
First updating block, when described login password is identical with the legal password of described electronic account, permits
Family allowable logs in described electronic account, and the login name bound by described electronic account is by described former login name
It is updated to described new login name.
Optionally, described device also includes:
First trigger element, when receiving the password including former login name and new login name and giving request for change,
Checking given for change by the electronic account triggering password unrelated with described former login name for the binding of described former login name
Flow process;
Second updating block, when determining that user gives the checking of checking flow process for change by described password, by institute
The legal password update of the electronic account stating the binding of former login name is the password that user resets, and by institute
The login name stating electronic account is updated to described new login name by described former login name.
Optionally, described former login name includes: phone number, E-mail address;
Described new login name also includes: phone number, E-mail address.
A kind of managing device of electronic account, described device includes:
4th acquiring unit, obtains former login name, new login name in user's logging request and logs in close
Code;
5th acquiring unit, obtains the legal password of the electronic account of described former login name binding;
Password judging unit, it is judged that described login password is the most identical with described legal password;
3rd updating block, when described login password is identical with described legal password, it is allowed to user logs in
The electronic account of described former login name binding, and the login name bound by described electronic account former stepped on by described
Record name is updated to described new login name.
Optionally, described device also includes:
Second trigger element, when receiving the password including former login name and new login name and giving request for change,
Trigger the password unrelated with described former login name and give checking flow process for change;
4th updating block, when determining that user gives the checking of checking flow process for change by described password, by institute
The legal password update of the electronic account stating the binding of former login name is the password that user resets, and by institute
The login name stating electronic account is updated to described new login name by described former login name.
By above description it can be seen that the application service end can after user submits again bind request to,
Electronic account based on the binding of new login star former login name is sent to user, and after user's Successful login
The login name bound by described electronic account is updated to described new login name, follow-up use by described former login name
Family can use new login name to log in, and whole process manually releases the binding of former login name without user
Relation, the use state maintaining former login name without user, it is greatly improved the experience of user.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following
When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous
Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the application
There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the application
The example of the apparatus and method that a little aspects are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting
The application." a kind of " of singulative used in the application and appended claims, " institute
State " and " being somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.Also should
Work as understanding, term "and/or" used herein refer to and comprise one or more be associated list item
Any or all possible combination of purpose.
Although should be appreciated that may use term first, second, third, etc. various to describe in the application
Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that
This distinguishes.Such as, in the case of without departing from the application scope, the first information can also be referred to as
Two information, similarly, the second information can also be referred to as the first information.Depend on linguistic context, as in this institute
Use word " if " can be construed to " and ... time " or " when ... time " or " response
In determining ".
Fig. 1 is that the flow process of the management method of a kind of electronic account shown in the application one exemplary embodiment is shown
It is intended to.
Refer to Fig. 1, the management method of described electronic account can be applied in service end, includes following
Step:
Step 101, obtains the former login name in user's bind request again and new login name.
In the present embodiment, when user registers electronic account in APP, it is possible to use phone number, electricity
The personal communication information such as sub voice mailbox are as the login name of electronic account.In one example, with user by hands
As a example by plane No. code is as login name, user, when registering electronic account, can input the phone number of oneself.
Client sends and carries the registration request of described phone number to service end, service end get described
After phone number in registration request, this phone number can be searched in account storehouse and the most bound existing
Electronic account, if bound, then the information that can return conflict is entered to client, client
And conflict prompting can be exported, guide user to re-enter phone number.If this phone number is unbound
Any electronic account, then described phone number can be verified, such as by service end: sends note and tests
Card code gives this phone number, if user inputs identical short message verification code by client, then and can be true
Recognize and be verified, and then create new electronic account, point out user setup login password, and preserve this hands
The binding relationship of the electronic account of plane No. code and establishment is in account storehouse, and subsequent user can use this mobile phone
Number logs in above-mentioned electronic account as login name, and the process of this part and realization are referred to correlation technique,
This is no longer going to repeat them for the application.
It should be noted that service end is when creating electronic account, it will usually generate only for this electronic account
Account ID of one, the phone number used time then by account ID, registration and the login of user setup
The binding relationship of password (the most legal password) is saved in account storehouse.Refer to the example of table 1, when certain
When user uses the checking that phone number 13812345678 passes through registration, service end creates new electronics account
Number, and generate account ID:U1000001, then preserve U1000001, phone number 13812345678
And the binding relationship between the login password Adsa124 of user setup.
Account ID |
Phone number |
Legal password |
U1000001 |
13812345678 |
Adsa124 |
U1000002 |
13812345679 |
Dshkfaj2 |
Table 1
In the present embodiment, still as a example by logging in entitled phone number, client can be in login page
Provide the user the button for again binding phone number, refer to the user interface shown in Fig. 2, as
Really user does not changes cell-phone number, then the login password of its cell-phone number and setting can be used to log in, if used
Phone number has been changed at family, then user can click on the button of " binding new cell-phone number ", refer to figure
3, client can be shown and included former cell-phone number input frame and the user interface of new hand's plane No. input frame, uses
Family can click on confirming button, client and then transmission weight after inputting former cell-phone number and new hand's plane No.
New bind request is to service end, and service end, described in receiving again after bind request, can obtain it and take
The former cell-phone number of band and new hand's plane No..
Step 102, searches the electronic account of described former login name binding.
Step 103, is sent to user based on electronic account described in described new login star.
In the present embodiment, service end is carried in getting again bind request former login name and Xindeng
After record name, the electronic account of described former login name binding can be searched in account storehouse, then can be with base
In electronic account described in described new login star, such as: the unique account ID of described electronic account, send
To user, and preserve the transmission record of this electronic account.
In one example, still as a example by logging in entitled phone number, service end can be looked in account storehouse
Look for account ID that former phone number is bound, then account ID found is sent out by the form of short message
Deliver in new cell-phone number.
In another example, when logging in entitled E-mail address, service end can be searched in account storehouse
Account ID of primary electron mailbox binding, is then sent account ID found by the form of E-mail
In new E-mail address.
Step 104, obtains the electronic account in user's logging request and login password, described electronic account
It is that user receives based on described new login name.
In the present embodiment, user, can after account ID being received electronic account by new login name
To be logged in by account ID and the login password pre-set.Optionally, in one example,
Based on the user interface shown in Fig. 3, user is after clicking on confirming button, and client can show log in page
Face, user can input account ID and login password in this login page.
Step 105, when described login password is identical with the legal password of described electronic account, it is allowed to use
Family logs in described electronic account, and the login name bound by described electronic account is updated by described former login name
For described new login name.
In the present embodiment, service end receive client send account ID and login password after,
Judge that described login password is the most identical, if not with the legal password of this account ID binding in account storehouse
Identical, then can return the information of login failure to client, if identical, then allow user to log in this
The electronic account that account ID is corresponding, and the login name of this account ID binding in account storehouse is updated to described
New login name.
Specifically, service end after receiving logging request based on account ID and login password, if
Determine that the legal password that described login password is bound with described account ID is identical, then can decide whether to protect
Having the transmission record of this electronic account, if do not preserved, then explanation user did not submitted to binding again to ask
Ask, the follow-up flow process of the application can be terminated after allowing user to log in.If having preserved described electronics account
Number transmission record, then can illustrate that user submitted bind request again to, allow user log in after,
From described transmission, record can obtain new login name, the login name then bound by the electronic account of user
The described new login name got it is updated to by described former login name.
By above description it can be seen that the application service end can after user submits again bind request to,
Electronic account based on the binding of new login star former login name is sent to user, and after user's Successful login
The login name bound by described electronic account is updated to described new login name, follow-up use by described former login name
Family can use new login name to log in, and whole process manually releases the binding of former login name without user
Relation, the use state maintaining former login name without user, it is greatly improved the experience of user.
Fig. 4 is that the flow process of the management method of a kind of electronic account shown in the application one exemplary embodiment is shown
It is intended to.
Refer to Fig. 4, the management method of described electronic account can be applied in service end, includes following
Step:
Step 401, obtains former login name, new login name and the login password in user's logging request.
In the present embodiment, login name can include the personal communication of the user such as phone number, E-mail address
Information.User can use above-mentioned login name to register electronic account, before the flow process of registration is referred in advance
Stating the implementation in step 101, this is no longer going to repeat them for the application.
In the present embodiment, as a example by logging in entitled phone number, client can be in login page
User provides the login button for again binding phone number, refer to the user interface shown in Fig. 5,
If user does not changes cell-phone number, then the login password of its cell-phone number and setting can be used to log in, if
User has changed phone number, then user can click on the button of " binding new hand's plane No. logs in ", please join
Examining Fig. 6, client can be shown and included former cell-phone number input frame, new hand's plane No. input frame and login
The user interface of Password Input frame, user can click on confirming button, client after input relevant information
And then logging request can be sent to service end, service end, after receiving this logging request, can obtain
Its former cell-phone number carried, new hand's plane No. and login password.
Step 402, obtains the legal password of the electronic account of described former login name binding.
In the present embodiment, service end can search the electronic account of former login name binding in account storehouse,
And obtain the legal password of this electronic account.Such as: service end is searched former phone number in account storehouse and tied up
The legal password of fixed electronic account.
Step 403, it is judged that described login password is the most identical with described legal password, if identical, then
Step 404 can be performed.
Based on abovementioned steps 402, after getting described legal password, service end judges that described login is close
Code is the most identical with described legal password, if it is not the same, then can return login failure to client
Message.If identical, then can perform step 404.
Step 404, when determining that described login password is identical with described legal password, it is allowed to user logs in
The electronic account of described former login name binding, and the login name bound by described electronic account former stepped on by described
Record name is updated to described new login name.
Still as a example by logging in entitled phone number, judged result based on abovementioned steps 403, step on when described
When record password is identical with the described legal password got, user can be allowed to log in described former phone number
The electronic account of binding, and by the phone number of this electronic account binding in account storehouse by described former cell-phone number
Code is updated to new cell-phone number, and subsequent user can use new cell-phone number to log in.
By above description it can be seen that the application service end can be in login password and the binding of former login name
When the legal password of electronic account is identical, it is allowed to user logs in, and the login name bound by this electronic account
The new login name being updated in logging request by described former login name, subsequent user can use new login name
Log in.Whole process manually releases the binding relationship of former login name without user, ties up without user
Holding the use state of former login name, user can realize the binding again of login name by register, greatly
Improve greatly the experience of user.
Optionally, in another example, when user changes former login name, the application also provides for electronics
Flow process given for change by the password of account.Still as a example by logging in entitled phone number, it is assumed that user uses phone number
1 electronic account that have registered certain APP, phone number is replaced by phone number 2 by subsequent user, due to
User is not logged in this electronic account the most for a long time, causes user to have forgotten about the legal close of this electronic account
Code, now, user can select the password based on again binding to give request for change.
In actual applications, client can provide the user option that ordinary password gives for change and again tie up
Determine the option that password is given for change, if user does not changes phone number, such as: user still uses phone number
1, when user forgets Password, ordinary password can be selected to give for change, service end can be to phone number 1
Transmission short message is to carry out authentication, and allows user to reset password after being verified.
If phone number has been replaced by phone number 2 by user, then user can select again to bind close
The option given for change of code, client can be shown and included former cell-phone number input frame and new hand's plane No. input frame
Inputting interface, and after user inputs former cell-phone number and new hand's plane No. send password give for change request to
Service end.Service end is receiving after this password gives request for change, can search former cell-phone number in account storehouse
The electronic account of binding, i.e. the electronic account of phone number 1 binding, then triggers for this electronic account
Checking flow process given for change by the password unrelated with phone number 1.
In the present embodiment, the mode carrying out verifying based on phone number 1 is relevant to phone number 1
Checking flow process given for change by password, such as: send short message to verify to phone number 1.Described and hands
The unrelated password of plane No. code 1 is given checking flow process for change and be need not carry out password by phone number 1 and give for change
Flow process, can include: gives problem for change by the password of user setup and verifies, to user setup
E-mail address sends the mode of identifying code and carries out checking etc., and this is not particularly limited by the application.Citing comes
Saying, service end can give problem for change, such as to the password of client return user setup: you are favorite
What one book is, your birthplace where, client and then can give above-mentioned password for change problem exhibition
Show to user, in order to user fills in.
In the present embodiment, when determining that user gives the checking of checking flow process for change by described password, permissible
User is allowed to reset password, service end and then can be by the legal password update of this electronic account for using
The password that family resets, meanwhile, the login name of this electronic account can also former be stepped on by service end by described
Record name is updated to described new login name, such as: by the login of the electronic account that described phone number 1 is bound
Name is updated to phone number 2 by phone number 1, and subsequent user can use phone number 2 and new setting
Password log in.
By above description it can be seen that the application service end includes former login name and new login receiving
When request given for change by the password of name, the electronic account for the binding of described former login name triggers and described former login
Checking flow process given for change by the unrelated password of name, can effectively prevent disabled user by stealing the side of former login name
Formula steals the electronic account of user, safeguards user account safety.Meanwhile, service end can also be user
When being given for change the checking of checking flow process by described password, the login name of described electronic account former is stepped on by described
Record name is updated to described new login name, and subsequent user can use new login name to log in, it is not necessary to user
Resubmit bind request, be greatly improved the experience of user.
Corresponding with the embodiment of the management method of aforementioned electronic account, present invention also provides electronic account
The embodiment of managing device.
The embodiment of the managing device of the application electronic account can be applied in service end.Device embodiment
Can be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.Real with software
As a example by Xian, as the device on a logical meaning, be the processor by its place service end by non-easily
In the property lost memorizer, corresponding computer program instructions reads and runs formation in internal memory.From hardware view
For, as it is shown in fig. 7, be a kind of hardware knot of the managing device place service end of the application electronic account
Composition, in addition to the processor shown in Fig. 7, internal memory, network interface and nonvolatile memory,
In embodiment, the service end at device place is generally according to the actual functional capability of this service end, it is also possible to include other
Hardware, repeats no more this.
Fig. 8 is the block diagram of the managing device of a kind of electronic account shown in the application one exemplary embodiment.
Refer to Fig. 8, the managing device 800 of described electronic account can be applied shown in earlier figures 7
In service end, include: the first acquiring unit 801, account search unit 802, login name transmitting element
803, second acquisition unit the 804, first updating block the 805, first trigger element 806 and second is more
New unit 807.
Wherein, described first acquiring unit 801, obtain the former login name in user's bind request again and
New login name;
Described account searches unit 802, searches the electronic account of described former login name binding;
Described login name transmitting element 803, is sent to use based on electronic account described in described new login star
Family;
Described second acquisition unit 804, obtains the electronic account in user's logging request and login password,
Described electronic account is that user receives based on described new login name;
Described first updating block 805, when described login password and the legal password phase of described electronic account
Simultaneously, it is allowed to user logs in described electronic account, and the login name bound by described electronic account is by described
Former login name is updated to described new login name.
Described first trigger element 806, looks for receiving the password including former login name and new login name
Return hospitality when asking, trigger for the electronic account of described former login name binding unrelated with described former login name close
Code gives checking flow process for change;
Described second updating block 807, when determining that user gives the checking of checking flow process for change by described password
Time, the legal password update of the electronic account bound by described former login name is the password that user resets,
And the login name of described electronic account is updated to described new login name by described former login name.
Fig. 9 is the block diagram of the managing device of a kind of electronic account shown in the application one exemplary embodiment.
Refer to Fig. 9, the managing device 900 of described electronic account can be applied shown in earlier figures 7
In service end, include: the 4th acquiring unit the 901, the 5th acquiring unit 902, described password judge single
Unit's the 903, the 3rd updating block the 904, second trigger element 905 and the 4th updating block 906.
Wherein, described 4th acquiring unit 901, obtain the former login name in user's logging request, Xindeng
Record name and login password;
Described 5th acquiring unit 902, obtains the legal password of the electronic account of described former login name binding;
Described password judges single 903, it is judged that described login password is the most identical with described legal password;
Described 3rd updating block 904, when described login password is identical with described legal password, it is allowed to
User log in described former login name binding electronic account, and the login name that described electronic account is bound by
Described former login name is updated to described new login name.
Described second trigger element 905, looks for receiving the password including former login name and new login name
Return hospitality when asking, trigger the password unrelated with described former login name and give checking flow process for change;
Described 4th updating block 906, when determining that user gives the checking of checking flow process for change by described password
Time, the legal password update of the electronic account bound by described former login name is the password that user resets,
And the login name of described electronic account is updated to described new login name by described former login name.
In said apparatus, the function of unit and the process that realizes of effect specifically refer in said method corresponding
Step realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng
See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically,
The wherein said unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole module of person realizes the purpose of the application scheme.Those of ordinary skill in the art are not paying creativeness
In the case of work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all at this
Within the spirit of application and principle, any modification, equivalent substitution and improvement etc. done, should be included in
Within the scope of the application protection.