CN112836198A - Account login method and device, server, electronic equipment and storage medium - Google Patents
Account login method and device, server, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112836198A CN112836198A CN202110090932.XA CN202110090932A CN112836198A CN 112836198 A CN112836198 A CN 112836198A CN 202110090932 A CN202110090932 A CN 202110090932A CN 112836198 A CN112836198 A CN 112836198A
- Authority
- CN
- China
- Prior art keywords
- account
- sub
- login
- primary
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 80
- 238000012545 processing Methods 0.000 claims abstract description 63
- 238000001514 detection method Methods 0.000 claims description 25
- 230000004044 response Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 54
- 238000012795 verification Methods 0.000 description 49
- 238000010586 diagram Methods 0.000 description 16
- 238000005516 engineering process Methods 0.000 description 9
- 230000003993 interaction Effects 0.000 description 7
- 239000013589 supplement Substances 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000001502 supplementing effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/41—User authentication where a single sign-on provides access to a plurality of computers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure relates to an account login method, an account login device, a server, an electronic device and a storage medium, wherein the method comprises the following steps: the server side obtains a primary account corresponding to the primary account information by receiving a primary account login request initiated by the client side based on the primary account information, and logs in the primary account; after the primary account number successfully logs in, if the fact that a sub-account number is registered under the primary account number is determined, acquiring a sub-account number list related to the primary account number information, and returning the sub-account number list to the client; the sub-account list comprises a plurality of pieces of sub-account information; and receiving a sub-account login request for the client account to select a target sub-account from the sub-account list for login, and executing login processing of the target sub-account according to the sub-account login request. According to the account login method provided by the disclosure, a user can realize login of different sub-accounts based on one primary account information, and login information such as a plurality of mailbox accounts and mailbox passwords does not need to be managed simultaneously, so that account login efficiency can be improved.
Description
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an account login method, an account login device, a server, an electronic device, and a computer-readable storage medium.
Background
With the development of internet technology, a technology that one mobile phone number is associated with a plurality of account numbers appears, and the account can log in the plurality of account numbers through the mobile phone number and realize login switching among the account numbers.
In the related technology, the current account login method is mainly to associate a plurality of mailboxes through a mobile phone number, and an account can be logged in through different accounts associated with different mailboxes.
However, in the current account login method, a plurality of accounts depend on different mailboxes, and the accounts need to manage a plurality of mailbox accounts and corresponding mailbox passwords at the same time to realize switching between the accounts, so that the account login efficiency is low.
Disclosure of Invention
The disclosure provides an account login method, an account login device, a server, an electronic device and a storage medium, which are used for at least solving the problem of low account login efficiency in the related art. The technical scheme of the disclosure is as follows:
in a first aspect, an account login method is provided, which is applied to a server and includes:
receiving a primary account login request initiated by a client based on primary account information, acquiring a primary account corresponding to the primary account information, and performing login processing on the primary account;
after the primary account number is successfully logged in, if a sub-account number is determined to be registered under the primary account number, acquiring a sub-account number list associated with the primary account number information, and returning the sub-account number list to the client; the sub-account list comprises a plurality of pieces of sub-account information;
and receiving a sub-account login request for a client account to login by selecting a target sub-account from the sub-account list, and executing login processing of the target sub-account according to the sub-account login request.
In an optional embodiment, after the primary account number is successfully logged in, the method further includes: receiving a sub-account registration request initiated by the client based on the primary account, and acquiring the number of current sub-accounts corresponding to the primary account information; and if the number of the current sub-accounts is smaller than a preset account threshold, newly registering the corresponding sub-accounts according to the sub-account registration request, and establishing the association between the sub-accounts and the primary account information.
In an optional embodiment, after acquiring the number of the current sub-account numbers corresponding to the primary account number information, the method further includes: and if the number of the current sub-accounts is equal to the account threshold, refusing to respond to the sub-account registration request, and returning the registration failure result of the sub-accounts to the client.
In an optional embodiment, before performing the login process on the target sub-account, the method further includes: acquiring account information corresponding to the target sub-account, and detecting whether the account information corresponding to the target sub-account meets a preset integrity standard; if the account information does not accord with the integrity standard, returning a detection result that the account information does not accord with the integrity standard to the client, wherein the detection result is used for prompting the client to supplement the account information corresponding to the target sub-account; and if the account information meets the integrity standard, executing login processing of the target sub-account.
In an optional embodiment, the primary account login request further carries a login verification code, and before performing login processing on the primary account, the method further includes: acquiring a login verification code from the primary account login request; verifying the login verification code according to a preset verification code; and if the login verification code is consistent with the preset verification code, executing the step of acquiring login processing of the primary account.
In an optional embodiment, after the completion of the login process of the target sub-account, the method further includes: acquiring a first virtual identity corresponding to the target sub-account; and returning the first virtual identity to the client so that the client establishes instant messaging connection between the first virtual identity corresponding to the first virtual identity and a third-party service platform.
In an optional embodiment, the method further comprises: receiving an account switching request sent by the client, wherein the account switching request comprises a sub-account to be switched; according to the account switching request, executing login processing on the sub-account to be switched; and acquiring a second virtual identity corresponding to the sub-account to be switched, and returning the second virtual identity to the client so that the client establishes instant messaging connection between the second virtual identity corresponding to the second virtual identity and the third-party service platform.
In a second aspect, an account login method is provided, which is applied to a client, and includes:
responding to account login operation, sending a primary account login request containing primary account information for current login to a server, wherein the primary account login request is used for indicating the server to acquire a primary account corresponding to the primary account information and login the primary account;
receiving the sub account list returned by the server; the sub-account list is associated with the primary account information, and the sub-account list comprises a plurality of pieces of sub-account information;
responding to the selection operation of a target sub-account in the sub-account list, generating a sub-account login request aiming at the target sub-account, and sending the sub-account login request to the server, wherein the sub-account login request is used for indicating the server to execute the target sub-account
In an optional embodiment, the method further comprises: receiving a login success result of the primary account returned by the server, and detecting a sub-account registration operation initiated based on the primary account; responding to the sub-account registration operation, generating a sub-account registration request, and sending the sub-account registration request to the server, wherein the sub-account registration request is used for indicating the server to acquire the current sub-account number corresponding to the primary account number information; if the number of the current sub-account is smaller than a preset account threshold, a new sub-account is registered, and the association between the sub-account and the primary account information is established.
In an optional embodiment, after generating a sub-account login request for the target sub-account and sending the request to the server, the method further includes: receiving a detection result that the account information returned by the server side does not accord with the integrity standard, and displaying an account information editing page; the detection result is sent by the server side to detect whether the account information corresponding to the target sub-account meets a preset integrity standard; acquiring supplementary account information input on the basis of an account information editing page; and sending the supplementary account information to the server so that the server sends the supplementary account information to a third-party service platform for storage.
In an optional embodiment, the method further comprises: acquiring a first virtual identity corresponding to the target sub-account from the server; and establishing instant communication connection between the first virtual identity corresponding to the first virtual identity and a third-party service platform.
In an optional embodiment, the third-party service platform comprises an instant messaging service platform; the establishing of the instant messaging connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform includes: and establishing instant communication connection between the first virtual identity and the instant communication service platform so that the instant communication service platform returns a chat record aiming at the first virtual identity.
In an optional embodiment, after the establishing an instant messaging connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform, the method further includes: responding to an account switching operation, sending an account switching request containing a sub-account to be switched to the server, wherein the account switching request is used for indicating the server to execute login processing of the sub-account to be switched according to the account switching request, acquiring a second virtual identity corresponding to the sub-account to be switched, and returning the second virtual identity to the client; and establishing instant communication connection between the second virtual identity corresponding to the second virtual identity identifier and the third-party service platform.
In an optional embodiment, the third-party service platform comprises an instant messaging service platform; the establishing of the instant messaging connection between the second virtual identity corresponding to the second virtual identity and the third-party service platform includes: and establishing instant communication connection between the second virtual identity and the instant communication service platform so that the instant communication service platform returns a chat record aiming at the second virtual identity.
In a third aspect, an account login apparatus is provided, which is applied to a server, and includes:
the login request receiving unit is configured to execute a primary account login request initiated by a receiving client based on primary account information, acquire a primary account corresponding to the primary account information, and perform login processing on the primary account;
the account list acquiring unit is configured to acquire a sub-account list associated with the primary account information and return the sub-account list to the client if it is determined that a sub-account is registered under the primary account after the primary account is successfully logged in; the sub-account list comprises a plurality of pieces of sub-account information;
and the target account login unit is configured to execute a sub-account login request for receiving a target sub-account selected from the sub-account list by a client account to login, and execute login processing of the target sub-account according to the sub-account login request. In an optional embodiment, the apparatus further comprises: a sub-account registration unit configured to perform receiving a sub-account registration request initiated by the client based on the primary account, and acquire the current number of sub-accounts corresponding to the primary account information; and if the number of the current sub-accounts is smaller than a preset account threshold, newly registering the corresponding sub-accounts according to the sub-account registration request, and establishing the association between the sub-accounts and the primary account information.
In an optional embodiment, the sub-account registration unit is further configured to perform, if the current number of sub-accounts is equal to the account threshold, refusing to respond to the sub-account registration request, and returning a registration failure result of the sub-account to the client.
In an optional embodiment, the apparatus further comprises: the account integrity detection unit is configured to execute acquisition of account information corresponding to the target sub-account, and detect whether the account information corresponding to the target sub-account meets a preset integrity standard; if the account information does not accord with the integrity standard, returning a detection result that the account information does not accord with the integrity standard to the client, wherein the detection result is used for prompting the client to supplement the account information corresponding to the target sub-account; and if the account information meets the integrity standard, executing login processing of the target sub-account.
In an optional embodiment, the primary account login request further carries a login verification code, and the apparatus further includes: the login information verification unit is configured to acquire a login verification code from the primary account login request; verifying the login verification code according to a preset verification code; and if the login verification code is consistent with the preset verification code, executing a step of login processing of the primary account.
In an optional embodiment, the apparatus further comprises: a first identifier sending unit configured to perform acquiring a first virtual identity corresponding to the target sub-account; and returning the first virtual identity to the client so that the client establishes instant messaging connection between the first virtual identity corresponding to the first virtual identity and a third-party service platform.
In an optional embodiment, the apparatus further comprises: the second identifier sending unit is configured to execute receiving of an account switching request sent by the client, wherein the account switching request contains a sub-account to be switched; according to the account switching request, executing login processing on the sub-account to be switched; and acquiring a second virtual identity corresponding to the sub-account to be switched, and returning the second virtual identity to the client so that the client establishes instant messaging connection between the second virtual identity corresponding to the second virtual identity and a third-party service platform.
In a fourth aspect, an account login apparatus is provided, which is applied to a client, and includes:
a login request sending unit, configured to execute a primary account login request including primary account information for current login, in response to an account login operation, send to a server, where the primary account login request is used to instruct the server to obtain a primary account corresponding to the primary account information, perform login processing on the primary account, and instruct the server to obtain a sub-account list associated with the primary account information if it is determined that a sub-account is registered under the primary account after the primary account is successfully logged in, and return the sub-account list to the client; the sub-account list comprises a plurality of pieces of sub-account information;
the target account number selection unit is configured to execute receiving of the sub account number list returned by the server, and detection of selection operation of a client account on a target sub account number in the sub account number list;
and the sub-account login unit is configured to execute a sub-account login request aiming at the target sub-account in response to the selection operation, and send the sub-account login request to the server, wherein the sub-account login request is used for indicating the server to execute login processing of the target sub-account.
In an optional embodiment, the apparatus further comprises: the registration request sending unit is configured to execute the login success result of the primary account returned by the server, and detect the sub-account registration operation initiated based on the primary account; responding to the sub-account registration operation, generating a sub-account registration request, and sending the sub-account registration request to the server, wherein the sub-account registration request is used for indicating the server to acquire the current sub-account number corresponding to the primary account number information; if the number of the current sub-account is smaller than a preset account threshold, a new sub-account is registered, and the association between the sub-account and the primary account information is established.
In an optional embodiment, the apparatus further comprises: the account information editing unit is configured to execute receiving of a detection result that the account information returned by the server does not accord with an integrity standard, and display an account information editing page; the detection result is sent by the server side to detect whether the account information corresponding to the target sub-account meets a preset integrity standard; acquiring supplementary account information input on the basis of an account information editing page; and sending the supplementary account information to the server so that the server sends the supplementary account information to a third-party service platform for storage.
In an optional embodiment, the apparatus further comprises: the first communication connection unit is configured to execute acquisition of a first virtual identity corresponding to the target sub-account from the server; and establishing instant communication connection between the first virtual identity corresponding to the first virtual identity and a third-party service platform.
In an optional embodiment, the third-party service platform comprises an instant messaging service platform; the first communication connection unit is further configured to perform instant communication connection establishment between the first virtual identity and the instant communication service platform, so that the instant communication service platform returns a chat record aiming at the first virtual identity.
In an optional embodiment, the apparatus further comprises: the second communication connection unit is configured to execute an account switching request which responds to an account switching operation and sends an account switching request containing a sub-account to be switched to the server, wherein the account switching request is used for indicating the server to execute login processing of the sub-account to be switched, acquiring a second virtual identity corresponding to the sub-account to be switched, and returning the second virtual identity to the client; and establishing instant communication connection between the second virtual identity corresponding to the second virtual identity identifier and the third-party service platform.
In an optional embodiment, the third-party service platform comprises an instant messaging service platform; the second communication connection unit is further configured to perform instant communication connection establishment between the second virtual identity and the instant communication service platform, so that the instant communication service platform returns a chat record aiming at the second virtual identity.
In a fifth aspect, a server is provided, including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the account login method in any embodiment of the first aspect.
In a sixth aspect, an electronic device is provided, which includes: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the account login method in any embodiment of the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, in which instructions, when executed by a processor of a server, enable the server to perform the account login method described in any one of the embodiments of the first aspect.
In an eighth aspect, a computer-readable storage medium is provided, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the account login method described in any one of the embodiments of the second aspect.
In a ninth aspect, there is provided a computer program product comprising a computer program storing computer program code that, when executed by a processor, performs the account login method of any one of the embodiments of the first or second aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the server side obtains a primary account corresponding to the primary account information by receiving a primary account login request initiated by the client side based on the primary account information, and logs in the primary account; after the primary account number successfully logs in, if the fact that a sub-account number is registered under the primary account number is determined, acquiring a sub-account number list related to the primary account number information, and returning the sub-account number list to the client; the sub-account list comprises a plurality of pieces of sub-account information; and receiving a sub-account login request for the client account to select a target sub-account from the sub-account list for login, and executing login processing of the target sub-account according to the sub-account login request. According to the account login method provided by the disclosure, a user can realize login of different sub-accounts based on one primary account information, and login information such as a plurality of mailbox accounts and mailbox passwords does not need to be managed simultaneously, so that account login efficiency can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is an application environment diagram illustrating an account login method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an account login method according to an exemplary embodiment.
Fig. 3 is a flow diagram illustrating registration of a sub-account, according to an example embodiment.
Fig. 4 is a flow diagram illustrating integrity checking of account information according to an example embodiment.
Fig. 5 is a flowchart illustrating an account login method according to another exemplary embodiment.
Fig. 6 is a flow diagram illustrating supplementing account information in accordance with an example embodiment.
Fig. 7 is an interaction flow diagram illustrating a method of account login in accordance with an exemplary embodiment.
FIG. 8 is an interaction flow diagram illustrating a primary account number login in accordance with an illustrative embodiment.
FIG. 9 is an interaction flow diagram illustrating sub-account login in accordance with an exemplary embodiment.
FIG. 10 is an interaction flow diagram illustrating account switching account communication, according to an example embodiment.
Fig. 11 is a block diagram illustrating an account login device according to an example embodiment.
Fig. 12 is a block diagram illustrating an account login apparatus according to another exemplary embodiment.
Fig. 13 is an internal block diagram of a server according to an example embodiment.
Fig. 14 is an internal structural diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The account login method provided by the present disclosure may be applied to an application environment as shown in fig. 1. Wherein, the client 101 interacts with the server 102 through the network. Specifically, an account of the client 101 may initiate a primary account login request to the server 102 through the client 101, after receiving the login request, the server 102 may determine a primary account corresponding to the login request, perform login processing on the primary account, after the primary account successfully logs in, determine whether a sub-account is registered under the primary account, if so, obtain a sub-account list of sub-accounts associated with the primary account, return the sub-account list to the client 101, then the account of the client 101 may select a target sub-account from the returned sub-account list, generate a corresponding sub-account login request, and send the corresponding sub-account login request to the server 102, and the server 102 may log in the target sub-account based on the sub-account login request. The client 101 may be, but is not limited to, various mobile phone terminals, and the server 102 may be implemented by an independent server or a server cluster composed of a plurality of servers.
Fig. 2 is a flowchart illustrating an account login method according to an exemplary embodiment, where as shown in fig. 2, the account login method is used in the server 102, and includes the following steps.
In step S201, the server 102 receives a primary account login request sent by the client 101, acquires a primary account corresponding to the primary account information, and performs login processing on the primary account.
The client 101 refers to a client used for an account requiring account login, and the primary account information refers to login information required for primary account login in a current login environment, and may be a mobile phone number or the like previously establishing a binding relationship with a primary account, or an account number corresponding to the primary account, or the like.
Specifically, when an account of the client 101 needs to perform account login through the client 101, an account login request for instructing the server 102 to perform account login may be sent to the server 102 through the client 101, where the request may carry information of a current login primary account, and after receiving the primary account login request sent by the client 101, the server 102 may read the primary account information from the login request, determine a primary account corresponding to the primary account information, and perform login processing on the primary account.
In step S202, after the primary account number is successfully logged in, if it is determined that a sub-account number is registered under the primary account number, the server 102 acquires a sub-account number list associated with the primary account number information, and returns the sub-account number list to the client 101; the sub-account list includes information of a plurality of sub-accounts.
The primary account information may be associated with a plurality of sub-accounts in advance, for example, the primary account information may be a mobile phone number a of the client 101, the mobile phone number a may be preset with association relationships with the plurality of sub-accounts, for example, the mobile phone number may be associated with the sub-account B, the sub-account C, and the sub-account D respectively, and the sub-account list is a list formed by the plurality of sub-accounts associated with the primary account information, that is, the sub-account list may include the sub-account B, the sub-account C, and the sub-account D. The sub-account list is also associated with the primary account information, and the sub-account list may be pre-constructed by the server 102, or may be constructed by the server 102 after obtaining the primary account information. After the server 102 obtains the primary account information, it may query a plurality of sub-accounts associated with the primary account information according to the primary account information to form a sub-account list and return the sub-account list to the client 101, or the server 102 may construct different sub-account lists in advance according to different primary account information, and after the server 102 obtains the primary account information, it directly queries the sub-account list associated with the primary account information according to the primary account information and returns the sub-account list to the client 101.
In step S203, the server 102 receives a sub-account login request for the client 101 to select a target sub-account from the sub-account list and login, and executes login processing for the target sub-account according to the sub-account login request.
The target sub-account number refers to a sub-account number selected from the sub-account number list by the account of the client 101 for login, for example, the sub-account number C is selected from the sub-account number B, the sub-account number C, and the sub-account number D, and then the sub-account number C is used as the target sub-account number. Specifically, the account of the client 101 may select one sub-account from a sub-account list returned by the server 102 as a target sub-account, generate a sub-account login request for logging in the target sub-account, and send the sub-account login request to the server 102, where the server 102 may log in the target sub-account based on the sub-account login request, and after the login is completed, may also feed back a processing result of successful account login to the client 101.
In the account login method, the server 102 obtains a primary account corresponding to primary account information by receiving a primary account login request initiated by the client 101 based on the primary account information, and performs login processing on the primary account; after the primary account number is successfully logged in, if it is determined that a sub-account number is registered under the primary account number, acquiring a sub-account number list associated with the primary account number information, and returning the sub-account number list to the client 101; the sub-account list comprises a plurality of pieces of sub-account information; receiving a sub-account login request for the client 101 to select a target sub-account from the sub-account list for login, and executing login processing of the target sub-account according to the sub-account login request. According to the account login method provided by the disclosure, a user can realize login of different sub-accounts based on one primary account information, and login information such as a plurality of mailbox accounts and mailbox passwords does not need to be managed simultaneously, so that account login efficiency can be improved.
In an exemplary embodiment, as shown in fig. 3, after the primary account number of the server 102 is successfully logged in, the method further includes:
in step S301, the server 102 receives a sub-account registration request initiated by the client 101 based on the primary account, and acquires the current number of sub-accounts corresponding to the primary account information.
If no suitable sub-account number exists in the sub-account number list or no sub-account number list associated with the primary account number information exists, the account of the client 101 may be registered by the client 101. The sub-account registration request is a request initiated by an account of the client 101 through the client 101 and used for registering a new sub-account, after the account successfully logs in the primary account through the client 101, the account can register a new sub-account through the logged-in primary account to realize registration of the new sub-account and association of the newly registered sub-account and primary account information, and the current sub-account number represents the number of a plurality of sub-accounts with which the primary account information is associated in advance, for example, the primary account information is associated with 3 pieces of sub-account information in advance, and then the current sub-account number is 3. Specifically, after the server 102 completes the login of the primary account and returns the processing result of successful login of the primary account to the client 101, it may receive a sub-account registration request initiated by the client 101 based on the logged-in primary account, and determine the current sub-account number corresponding to the primary account information.
In step S302, if the number of the current sub-account is smaller than the preset account threshold, a corresponding sub-account is newly registered according to the sub-account registration request, and a correlation between the sub-account and the primary account information is established.
The account threshold refers to the maximum number of sub-accounts which can be registered and correspond to the primary account information, and in order to avoid abuse caused by excessive registration of the sub-accounts, the server 102 may control the number of sub-accounts which can be associated with each piece of primary account information by setting the account threshold, for example, if the account threshold corresponding to the primary account information a is 4, the number of sub-accounts which can be associated with the primary account information a is at most 4. Only when the number of the current sub-account is smaller than the set account threshold, the server 102 will newly register the corresponding sub-account according to the sub-account registration request, and establish the association relationship between the sub-account and the primary account information.
In addition, after step S301, the method may further include: if the number of the current sub-accounts is equal to the account threshold, the server 102 refuses to respond to the sub-account registration request, and returns the registration failure result of the sub-accounts to the client 101.
If the number of the current sub-accounts has reached the set account threshold, that is, the current primary account information has reached the maximum value of the registrable sub-accounts, at this time, the server 102 will refuse to respond to the sub-account registration request initiated by the client 101, and return the result of the sub-account registration failure to the client 101.
In the above embodiment, the server 102 may register a new sub-account after the primary account is successfully logged in, and register the new sub-account and establish a relationship with the primary account information only when the number of the current sub-accounts is smaller than the account threshold by setting the account threshold, so that abuse caused by excessive registration of the sub-accounts can be avoided.
In addition, in order to ensure the fluency of the business executed by the account of the client 101 after the account login, before the server 102 performs the login process on the target sub-account in step S203, as shown in fig. 4, the method may further include:
in step S401, the server 102 obtains account information corresponding to the target sub-account, and detects whether the account information corresponding to the target sub-account meets a preset integrity standard.
The integrity standard may be a standard preset for account information of a sub-account, and may be used to judge whether the account information of the sub-account is complete, including whether some necessary entries have complete account information content, or whether the information format of some account information completely corresponds to the same, and the like.
In step S402, if the account information does not meet the integrity standard, the server 102 returns a detection result that the account information does not meet the integrity standard to the client 101, where the detection result is used to prompt the client 101 to supplement the account information corresponding to the target sub-account;
in step S403, if the account information meets the integrity standard, the server 102 executes a login process for the target sub-account.
If the detection result of whether the service end 102 meets the integrity standard is that the account information does not meet the integrity standard, and possibly that the target sub-account lacks some account information, the service end 102 may return the detection result that does not meet the integrity standard to the client 101, so that the account of the client 101 further supplements the account information of the target sub-account to perfect the integrity of the account information. If the detection result obtained by the server 102 is that the account information meets the integrity standard, that is, the account information of the target sub-account is complete, the server 102 performs the step of logging in the target sub-account in step S203.
In this embodiment, the server 102 may detect whether the account information corresponding to the target sub-account meets the integrity standard, and may improve the integrity of the account information, so as to ensure the smoothness of the service executed by the account after the account is logged in.
In an exemplary embodiment, the primary account login request further carries a login verification code, and before step S201, the method may further include: the server 102 acquires a login verification code from a primary account login request; verifying the login verification code according to a preset verification code; and if the login verification code is consistent with the preset verification code, executing a step of performing login processing on the primary account.
The login verification code is verification information used for verifying whether the client can perform primary account login, the information may be a certain mobile phone verification code, when the account of the client 101 needs account login, the login verification code used for verifying the client 101 can be sent to the server 102 as a part of an account login request, the server 102 can verify the login verification code, for example, whether verification passes can be determined by comparing a preset verification code with an obtained login verification code in a manner of being consistent, and the preset verification code can be obtained by calling an external verification code service. If the authentication is passed, the step of performing login processing on the primary account in step S201 is performed, and if the authentication is failed, the result of the account login failure is fed back to the client 101.
In this embodiment, the security of the account login account of the client 101 can be improved by verifying the login verification code.
In an exemplary embodiment, after the completion of the login process of the target sub-account, the server 102 further includes: the server 102 acquires a first virtual identity corresponding to a target sub-account; and returning the first virtual identity to the client 101, so that the client 101 establishes an instant messaging connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform.
The first virtual identity is a virtual identity corresponding to the target sub-account, and may be a virtual identity name corresponding to the target sub-account, after the server 102 completes the login operation of the target sub-account, the server may return the corresponding first virtual identity to the client 101, and the client 101 may establish a virtual identity corresponding to the first virtual identity, that is, an instant messaging connection between the first virtual identity and the third-party service platform.
Further, the method may further include: the server 102 receives an account switching request sent by the client 101, wherein the account switching request comprises a sub-account to be switched; according to the account switching request, executing login processing of the sub-accounts to be switched; and acquiring a second virtual identity corresponding to the sub-account to be switched, and returning the second virtual identity to the client 101, so that the client 101 establishes instant messaging connection between the second virtual identity corresponding to the second virtual identity and the third-party service platform.
If the account of the client 101 wants to establish instant communication connection with the third-party service platform through other sub-accounts, an account switching request for switching the currently logged-in sub-account can be initiated to the server 102 through the client 101, wherein the request can include the sub-account to be switched, namely the sub-account to be switched, after the server 102 obtains the account switching request, the sub-account to be switched can be determined from the request, the sub-account to be switched is logged in, and the virtual identity corresponding to the sub-account to be switched is returned to the client 101 as the second virtual identity, and the client 101 can establish the virtual identity corresponding to the second virtual identity, namely the instant communication connection between the second virtual identity and the third-party service platform, so as to realize account switching.
In this embodiment, the server 102 may return the first virtual identity to the client 101, so that the client 101 may establish a connection between the first virtual identity and the third-party service platform, and implement communication between the first virtual identity and the third-party service platform, and if an account needs to be switched, the server 102 may obtain the corresponding second virtual identity again and return the second virtual identity, so that the client 101 may establish a connection between the second virtual identity and the third-party service platform, and implement communication with the third-party service platform.
Fig. 5 is a flowchart illustrating an account login method according to an exemplary embodiment, where the account login method is used in the client 101, as shown in fig. 5, and includes the following steps.
In step S501, in response to the account login operation, the client 101 sends a primary account login request including primary account information for current login to the server 102, where the primary account login request is used to instruct the server 102 to obtain a primary account corresponding to the primary account information and perform login processing on the primary account.
The account login operation is an operation triggered by the client 101 and used for realizing account login by an account of the client 101, when an account needs to log in to a certain account, for example, the account login operation may be triggered by inputting a mobile phone number to the client 101, and when the client 101 receives the account login operation initiated by the account, a primary account login request carrying primary account information may be sent to the server 102, where the primary account information may be the mobile phone number input by the account, so that the server 102 may determine the primary account corresponding to the primary account information and log in the primary account.
In step S502, the client 101 receives the sub-account list returned by the server 102; the sub-account list is associated with the primary account information, and the sub-account list comprises a plurality of pieces of sub-account information.
After the primary account logs in, the server 102 may query the associated sub-account list according to the primary account information carried in the request, and return the sub-account list to the client 101, where the primary account information may be associated with a plurality of pieces of sub-account information in advance, so as to form the sub-account list associated with the primary account information.
In step S503, in response to the selection operation of the target sub-account in the sub-account list, the client 101 generates a sub-account login request for the target sub-account, and sends the sub-account login request to the server 102, where the sub-account login request is used to instruct the server 102 to perform login processing on the target sub-account.
After the server 102 returns the sub-account list associated with the primary account information, the account may trigger a selection operation on any sub-account in the sub-account list on the client 101, for example, by clicking any one sub-account in the sub-account list, if the client 101 detects the selection operation on the account, the sub-account selected by the account may be used as a target sub-account, and a login request for the target sub-account is generated and sent to the server 102 as a sub-account login request, and the server 102 may perform login processing on the target sub-account according to the received sub-account login request and return a login result to the client 101.
In the account login method, the client 101 responds to an account login operation and sends a primary account login request containing primary account information for current login to the server 102, wherein the primary account login request is used for indicating the server 102 to acquire a primary account corresponding to the primary account information and login the primary account; receiving a sub-account list returned by the server 102; the sub-account list is associated with the primary account information, and comprises a plurality of pieces of sub-account information; and in response to the selection operation of the target sub-account in the sub-account list, generating a sub-account login request for the target sub-account, and sending the sub-account login request to the server 102, wherein the sub-account login request is used for instructing the server 102 to execute login processing of the target sub-account. According to the account login method provided by the disclosure, a user can realize login of different sub-accounts based on one primary account information, and login information such as a plurality of mailbox accounts and mailbox passwords does not need to be managed simultaneously, so that account login efficiency can be improved.
In an exemplary embodiment, the account login method may further include: the client 101 receives a login success result of the primary account returned by the server 102, and detects a sub-account registration operation initiated based on the primary account; responding to the sub-account registration operation, generating a sub-account registration request, and sending the sub-account registration request to the server 102, wherein the sub-account registration request is used for indicating the server 102 to acquire the current sub-account number corresponding to the primary account number information; if the number of the current sub-account is smaller than a preset account threshold, a new sub-account is registered, and the correlation between the sub-account and the primary account information is established.
If the login result of the primary account returned by the server 102 is successful, the account of the client 101 may register a new sub-account through the logged-in primary account, specifically, the account may trigger a registration operation on a new sub-account through the client 101 based on the successfully logged-in primary account, the client 101 may respond to the registration operation to generate a sub-account registration request and simultaneously send the sub-account registration request to the server 102, the server 102 may determine, according to the received sub-account registration request, the number of sub-accounts with which the primary account information has been associated, as the current number of sub-accounts, and the maximum number of sub-accounts with which the preset primary account information can be associated, as an account threshold, and compare the current number of sub-accounts with the account threshold, if the current number of sub-accounts is less than the preset account threshold, the client 101 may newly register a sub-account and establish an association relationship between the newly registered sub-account and the primary account information.
In the above embodiment, after the primary account number is successfully logged in, the account may register a new sub-account number, and establish the association between the newly registered sub-account number and the primary account number information, thereby implementing the association between the sub-account number and the primary account number information.
In an exemplary embodiment, as shown in fig. 6, after step S503, the method further includes:
in step S601, the client 101 receives a detection result that the account information returned by the server 102 does not meet the integrity standard, and displays an account information editing page; the detection result is sent by the server 102 to detect whether the account information corresponding to the target sub-account meets a preset integrity standard.
The account information editing page is displayed in the client 101, and is used for editing and supplementing account information of the logged-in target sub-account by the account of the client 101. Specifically, if the client 101 receives a detection result that the detection fails, which is sent by the server 102 to detect whether the account information corresponding to the target sub-account meets a preset integrity standard, the client 101 may enter an account information editing page and display the page, and the account may edit and supplement the account information on the page.
In step S602, the client 101 acquires supplementary account information input based on the account information editing page;
in step S603, the client 101 sends the supplementary account information to the server 102, so that the server 102 sends the supplementary account information to the third-party service platform for storage.
The third-party service platform is a service platform for calling some third-party services by logging in sub-accounts, the supplementary account information is the account information after the account completes the supplement on an account information editing page, the account can input the supplementary account information in the account information editing page displayed in the client 101, so that the client 101 sends the input supplementary account information to the server 102, the server 102 can send the obtained supplementary account information to the third-party service platform to be called for storage, complete the login operation of a target sub-account selected by the client 101, and return the login result to the client 101.
In this embodiment, when the account information does not meet the integrity standard, the client 101 may edit the page through the displayed account information to obtain the supplementary account information, and send the supplementary account information to the server 102, and the server 102 stores the supplementary account information in the third-party service platform, so that the integrity of the account information may be improved, and the smoothness of the service executed by the third-party service platform after the account is logged in may be ensured.
In an exemplary embodiment, the account login method may further include: the client 101 acquires a first virtual identity corresponding to a target sub-account from the server 102; and establishing instant communication connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform.
After the client 101 successfully logs in to the target sub-account, the corresponding first virtual identity can be obtained from the server 102, and an instant messaging connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform is established.
Further, the third-party service platform comprises an instant messaging service platform; the client 101 establishes an instant messaging connection between a first virtual identity corresponding to the first virtual identity and a third-party service platform, and the method includes: the client 101 establishes an instant messaging connection between the first virtual identity and the instant messaging service platform, so that the instant messaging service platform returns a chat record for the first virtual identity.
Specifically, after the client 101 establishes a communication connection between the first virtual identity and the instant messaging service platform, the instant messaging service platform may feed back a chat record corresponding to the first virtual identity to the client 101, and meanwhile, the account may perform a dialogue communication with other accounts by using the first virtual identity.
In addition, after the client 101 establishes the instant messaging connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform, the method may further include: the client 101 responds to the account switching operation, and sends an account switching request containing the sub-account to be switched to the server 102, wherein the account switching request is used for indicating the server 102 to execute login processing of the sub-account to be switched according to the account switching request, acquire a second virtual identity corresponding to the sub-account to be switched, and return the second virtual identity to the client 101; and establishing instant communication connection between the second virtual identity corresponding to the second virtual identity identifier and the third-party service platform.
If the account wants to log in other sub-accounts, the logged-in target sub-account can be switched into other sub-accounts needing to log in, namely the sub-accounts to be switched, by triggering account switching operation. Specifically, after an account is triggered to perform account switching operation through the client 101, the client 101 may send an account switching request carrying information of a sub-account to be switched to the server 102, the server 102 may log in the sub-account to be switched based on the obtained sub-account to be switched, find a second virtual identity matching the sub-account to be switched, return the second virtual identity to the client 101, and the client 101 may establish instant messaging connection between a second virtual identity corresponding to the second virtual identity and a third-party service platform.
Further, the third-party service platform may include an instant messaging service platform; the client 101 establishes an instant messaging connection between a second virtual identity corresponding to the second virtual identity and a third-party service platform, including: the client 101 establishes an instant messaging connection between the second virtual identity and the instant messaging service platform, so that the instant messaging service platform returns a chat record for the second virtual identity.
If the third-party service platform for establishing the instant messaging connection is a platform for providing the instant messaging service, the instant messaging service platform may return the chat record for the second virtual identity to the client 101, and the account of the client 101 may implement instant messaging with other accounts through the second virtual identity.
In the above embodiment, the account may establish an instant messaging connection between the first virtual identity and the instant messaging service platform, at this time, only the chat record corresponding to the first virtual identity may be seen in the target sub-account number of the account, and if the account is switched to the account number to be switched, the instant messaging connection between the second virtual identity and the instant messaging service platform may be established, at this time, only the chat record corresponding to the second virtual identity may be seen in the account.
Fig. 7 is an interaction flowchart illustrating a method for account login according to an exemplary embodiment, where as shown in fig. 7, the method may include the following steps:
in step S701, the client 101 sends a primary account login request including primary account information for current login to the server 102 in response to an account login operation;
in step S702, the server 102 obtains a login verification code from the primary account login request, verifies the login verification code according to a preset verification code, and if the login verification code is consistent with the preset verification code, performs login processing on the primary account;
in step S703, after the primary account number is successfully logged in, if it is determined that a sub-account number is registered under the primary account number, the server 102 acquires a sub-account number list associated with the primary account number information, and returns the sub-account number list to the client 101;
in step S704, the client 101 receives the sub-account list returned by the server 102, generates a sub-account login request for the target sub-account in response to a selection operation on the target sub-account in the sub-account list, and sends the sub-account login request to the server 102;
in step S705, the server 102 obtains account information corresponding to the target sub-account, detects whether the account information corresponding to the target sub-account meets a preset integrity standard, executes login processing on the target sub-account if the account information meets the integrity standard, and returns a first virtual identity corresponding to the target sub-account to the client 101;
in step S706, the client 101 establishes an instant messaging connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform;
in step S707, the client 101 sends an account switching request including a sub-account to be switched to the server 102 in response to the account switching operation;
in step S708, the server 102 acquires a second virtual identity identifier corresponding to the sub-account to be switched, executes login processing of the sub-account to be switched, and returns the second virtual identity identifier corresponding to the sub-account to be switched to the client 101;
in step S709, the client 101 establishes an instant messaging connection between the second virtual identity corresponding to the second virtual identity and the third-party service platform.
In the embodiment, the user can realize login of different sub-accounts based on one primary account information without simultaneously managing login information such as a plurality of mailbox accounts and mailbox passwords, so that account login efficiency can be improved. In addition, the login verification code can be verified, so that the security of the account login account of the client 101 can be improved, the integrity of the account information can be detected, and the smoothness of the service executed by the third-party service platform after the account login can be ensured. Moreover, the account switching provided by the embodiment does not need to be realized by managing a plurality of mobile phone numbers or mailbox numbers, and the complexity of account switching can be reduced.
In an exemplary embodiment, a method for logging in a primary account is further provided, which may implement registration of a sub-account, as shown in fig. 8, and the method may include the following steps:
1. the account carries out mobile phone verification code login;
2. verifying whether the mobile phone verification code is correct or not, if the mobile phone verification code is correct, the login is successful, otherwise, the login is failed;
3. if the login is successful, the account registers the sub-account number, whether the number of the registered sub-account numbers exceeds the limit is judged, if not, the sub-account number is registered successfully, otherwise, the registration fails.
In an exemplary embodiment, a method for logging in a seed account is further provided, as shown in fig. 9, the method may include the following steps:
1. the account carries out the login of the mobile phone number verification code;
2. verifying whether the mobile phone verification code is correct or not, otherwise, failing to execute login;
3. if the verification code is correct, judging whether the sub-account exists or not, if not, ending, and returning the information registered through the primary account;
4. if the sub-account exists, returning to the sub-account list, and selecting one sub-account in the list by the account to log in;
5. judging whether the current sub-account is bound with the instant messaging service information or not, if so, logging in successfully;
6. if the instant communication service information is not bound, the account completion information is prompted, after the information is completed, the information is stored, and after the information is successfully stored, the sub-account login success is returned.
In the above embodiment, each account is collected on the mobile phone number, and subsequent login only depends on the mobile phone number, does not depend on other accounts, does not need to manage multiple sets of account passwords, and solves the trouble that the account memorizes multiple sets of account passwords.
In an exemplary embodiment, an account switching method is further provided, as shown in fig. 10, the method may be applied to an instant messaging process between a customer service and other accounts, where the customer service has a plurality of sub-accounts, and includes the following steps:
1. the customer service logs in the sub-account 1 and obtains the virtual identity mark 1;
2. the customer service establishes a long connection with the instant messaging service through the virtual identity 1;
3. other accounts enter the shop 1 to find customer service chats, wherein a conversation window of the virtual identity mark 1 and the account is displayed in a chatting list of the account;
4. the customer service is switched to the sub-account 2 and the virtual identity label 2 is taken;
5. the customer service establishes a long connection with the instant messaging service through the virtual identity 2;
6. other accounts enter store 2 to serve a chat, where a conversation window of virtual id 2 and the account is presented in the account's chat list.
In the embodiment, when the account is chatted in different shops, the facing customer service servers can be the same, but from the experience perspective, the account is chatted with a plurality of customer service servers, so that the labor cost of the customer service servers can be reduced, and the communication efficiency is improved.
It should be understood that although the various steps in the flow charts of fig. 2-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Fig. 11 is a block diagram illustrating an account login device according to an example embodiment. Referring to fig. 11, the apparatus is applied to a server and includes a login request receiving unit 1101, an account list acquiring unit 1102, and a target account login unit 1103.
A login request receiving unit 1101 configured to execute a primary account login request initiated by a receiving client based on the primary account information, acquire a primary account corresponding to the primary account information, and perform login processing on the primary account;
an account list obtaining unit 1102 configured to, after the primary account is successfully logged in, if it is determined that a sub-account is registered under the primary account, obtain a sub-account list associated with the primary account information, and return the sub-account list to the client; the sub-account list comprises a plurality of pieces of sub-account information;
a target account login unit 1103 configured to execute a sub-account login request for receiving a target sub-account selected from the sub-account list by the client account to log in, and execute login processing on the target sub-account according to the sub-account login request.
In an exemplary embodiment, the account login device further includes: the account registration unit is configured to execute receiving of a sub-account registration request initiated by a client based on a primary account, and acquire the number of current sub-accounts corresponding to the primary account information; if the number of the current sub-account is smaller than a preset account threshold, a new sub-account is registered, and the correlation between the sub-account and the primary account information is established.
In an exemplary embodiment, the sub-account registration unit is further configured to refuse to respond to the sub-account registration request if the number of current sub-accounts is equal to the account threshold, and return a registration failure result of the sub-accounts to the client.
In an exemplary embodiment, the account login device further includes: the account integrity detection unit is configured to execute acquisition of account information corresponding to the target sub-account and detect whether the account information corresponding to the target sub-account meets a preset integrity standard; if the account information does not accord with the integrity standard, returning a detection result that the account information does not accord with the integrity standard to the client, wherein the detection result is used for prompting the client to supplement the account information corresponding to the target sub-account; and if the account information meets the integrity standard, executing login processing of the target sub-account.
In an exemplary embodiment, the primary account login request further carries a login verification code, and the account login apparatus further includes: the login information verification unit is configured to acquire a login verification code from a primary account login request; verifying the login verification code according to a preset verification code; and if the login verification code is consistent with the preset verification code, executing a step of performing login processing on the primary account.
In an exemplary embodiment, the account login device further includes: the first identification sending unit is configured to execute acquisition of a first virtual identity corresponding to the target sub-account; and returning the first virtual identity identifier to the client so that the client establishes instant messaging connection between the first virtual identity corresponding to the first virtual identity identifier and the third-party service platform.
In an exemplary embodiment, the account login device further includes: the second identifier sending unit is configured to execute receiving of an account switching request sent by the client, wherein the account switching request contains a sub-account to be switched; according to the account switching request, executing login processing of the sub-accounts to be switched; and acquiring a second virtual identity corresponding to the sub-account to be switched, and returning the second virtual identity to the client so that the client establishes instant communication connection between the second virtual identity corresponding to the second virtual identity and the third-party service platform.
Fig. 12 is a block diagram illustrating an account login device according to an example embodiment. Referring to fig. 12, the apparatus is applied to a client, and includes a login request transmission unit 1201, a target account selection unit 1202, and a sub-account login unit 1203.
A login request sending unit 1201 configured to execute, in response to an account login operation, a primary account login request including primary account information for current login, where the primary account login request is used to instruct a server to obtain a primary account corresponding to the primary account information and perform login processing on the primary account, and is used to instruct the server to obtain a sub-account list associated with the primary account information if it is determined that a sub-account is registered under the primary account after the primary account is successfully logged in, and return the sub-account list to a client; the sub-account list comprises a plurality of pieces of sub-account information;
a target account number selection unit 1202, configured to execute receiving a sub-account number list returned by a server, and detect a selection operation of a client account on a target sub-account number in the sub-account number list;
and a sub-account login unit 1203 configured to perform, in response to the selection operation, generating a sub-account login request for the target sub-account, and sending the sub-account login request to the server, where the sub-account login request is used to instruct the server to perform login processing on the target sub-account.
In an exemplary embodiment, the account login device further includes: the registration request sending unit is configured to execute a login success result of a primary account returned by the server and detect a sub-account registration operation initiated based on the primary account; responding to the sub-account registration operation, generating a sub-account registration request, and sending the sub-account registration request to a server side, wherein the sub-account registration request is used for indicating the server side to acquire the current sub-account number corresponding to the primary account number information; and if the number of the current sub-accounts is smaller than a preset account threshold, newly registering the corresponding sub-accounts according to the sub-account registration request, and establishing the association between the sub-accounts and the primary account information.
In an exemplary embodiment, the account login device further includes: the account information editing unit is configured to execute a detection result that the received account information returned by the server side does not accord with the integrity standard, and display an account information editing page; the detection result is that whether the account information corresponding to the target sub-account meets the preset integrity standard is detected by the server side; acquiring supplementary account information input on the basis of an account information editing page; and sending the supplementary account information to the server so that the server sends the supplementary account information to a third-party service platform for storage.
In an exemplary embodiment, the account login device further includes: the first communication connection unit is configured to execute acquisition of a first virtual identity corresponding to the target sub-account from the server; and establishing instant communication connection between the first virtual identity corresponding to the first virtual identity and the third-party service platform.
In an exemplary embodiment, the third-party service platform comprises an instant messaging service platform; the first communication connection unit is further configured to establish an instant communication connection between the first virtual identity and the instant communication service platform, so that the instant communication service platform returns the chat record aiming at the first virtual identity.
In an exemplary embodiment, the account login device further includes: the second communication connection unit is configured to execute an account switching request which responds to the account switching operation and sends an account switching request containing the sub-account to be switched to the server, wherein the account switching request is used for indicating the server to execute login processing of the sub-account to be switched, acquiring a second virtual identity corresponding to the sub-account to be switched and returning the second virtual identity to the client; and establishing instant communication connection between the second virtual identity corresponding to the second virtual identity identifier and the third-party service platform.
In an exemplary embodiment, the third-party service platform comprises an instant messaging service platform; and the second communication connection unit is further configured to execute the establishment of the instant communication connection between the second virtual identity and the instant communication service platform, so that the instant communication service platform returns the chat record aiming at the second virtual identity.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating a device S00 for account login according to an example embodiment. For example, the device S00 may be a server. Referring to fig. 13, device 1300 includes a processing component 1320 that further includes one or more processors and memory resources, represented by memory 1322, for storing instructions, such as application programs, that are executable by processing component 1320. The application programs stored in memory 1322 may include one or more modules each corresponding to a set of instructions. Further, the processing component 1320 is configured to execute instructions to perform the above-described method of account login.
The device 1300 may also include a power component 1324 configured to perform power management for the device 1300, a wired or wireless network interface 1326 configured to connect the device 1300 to a network, and an input-output (I/O) interface 1328. The device 1300 may operate based on an operating system stored in memory 1322, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a storage medium comprising instructions, such as memory 1322 comprising instructions, that are executable by a processor of device 1300 to perform the method described above is also provided. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 14 is a block diagram illustrating a device 1400 for account login, according to an example embodiment. For example, the device 1400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 14, device 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input/output (I/O) interface 1412, a sensor component 1414, and a communication component 1416.
The processing component 1402 generally controls the overall operation of the device 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1402 can include one or more modules that facilitate interaction between processing component 1402 and other components. For example, the processing component 1402 can include a multimedia module to facilitate interaction between the multimedia component 1408 and the processing component 1402.
The memory 1404 is configured to store various types of data to support operation at the device 1400. Examples of such data include instructions for any application or method operating on device 1400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1404 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1406 provides power to the various components of the device 1400. The power components 1406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 1400.
The multimedia component 1408 includes a screen that provides an output interface between the device 1400 and the account. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the account. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1408 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1400 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1410 is configured to output and/or input audio signals. For example, the audio component 1410 includes a Microphone (MIC) configured to receive external audio signals when the device 1400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1404 or transmitted via the communication component 1416. In some embodiments, audio component 1410 further includes a speaker for outputting audio signals.
I/O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1414 includes one or more sensors for providing various aspects of status assessment for the device 1400. For example, the sensor component 1414 may detect an open/closed state of the device 1400, a relative positioning of components, such as a display and keypad of the device 1400, a change in location of the device 1400 or a component of the device 1400, the presence or absence of an account contact with the device 1400, an orientation or acceleration/deceleration of the device 1400, and a change in temperature of the device 1400. The sensor assembly 1414 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1414 may also include a photosensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1416 is configured to facilitate wired or wireless communication between the device 1400 and other devices. The device 1400 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 213, 313, 413, or 513), or a combination thereof. In an exemplary embodiment, the communication component 1416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 1400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), field programmable gate arrays (FP13A), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 1404 that includes instructions executable by the processor 1420 of the device 1400 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (10)
1. An account login method is applied to a server and comprises the following steps:
receiving a primary account login request initiated by a client based on primary account information, acquiring a primary account corresponding to the primary account information, and performing login processing on the primary account;
after the primary account number is successfully logged in, if a sub-account number is determined to be registered under the primary account number, acquiring a sub-account number list associated with the primary account number information, and returning the sub-account number list to the client; the sub-account list comprises a plurality of pieces of sub-account information;
and receiving a sub-account login request for a client account to login by selecting a target sub-account from the sub-account list, and executing login processing of the target sub-account according to the sub-account login request.
2. The method of claim 1, further comprising, after successful login of the primary account number:
receiving a sub-account registration request initiated by the client based on the primary account, and acquiring the number of current sub-accounts corresponding to the primary account information;
and if the number of the current sub-accounts is smaller than a preset account threshold, newly registering the corresponding sub-accounts according to the sub-account registration request, and establishing the association between the sub-accounts and the primary account information.
3. An account login method is applied to a client and comprises the following steps:
responding to account login operation, sending a primary account login request containing primary account information for current login to a server, wherein the primary account login request is used for indicating the server to acquire a primary account corresponding to the primary account information and login the primary account;
receiving the sub account list returned by the server; the sub-account list is associated with the primary account information, and the sub-account list comprises a plurality of pieces of sub-account information;
and responding to the selection operation of a target sub-account in the sub-account list, generating a sub-account login request aiming at the target sub-account, and sending the sub-account login request to the server, wherein the sub-account login request is used for indicating the server to execute login processing of the target sub-account.
4. An account login device is applied to a server and comprises:
the login request receiving unit is configured to execute a primary account login request initiated by a receiving client based on primary account information, acquire a primary account corresponding to the primary account information, and perform login processing on the primary account;
the account list acquiring unit is configured to acquire a sub-account list associated with the primary account information and return the sub-account list to the client if it is determined that a sub-account is registered under the primary account after the primary account is successfully logged in; the sub-account list comprises a plurality of pieces of sub-account information;
and the target account login unit is configured to execute a sub-account login request for receiving a target sub-account selected from the sub-account list by a client account to login, and execute login processing of the target sub-account according to the sub-account login request.
5. An account login device, applied to a client, includes:
a login request sending unit, configured to execute a primary account login request including primary account information for current login, in response to an account login operation, send to a server, where the primary account login request is used to instruct the server to obtain a primary account corresponding to the primary account information, perform login processing on the primary account, and instruct the server to obtain a sub-account list associated with the primary account information if it is determined that a sub-account is registered under the primary account after the primary account is successfully logged in, and return the sub-account list to the client; the sub-account list comprises a plurality of pieces of sub-account information;
the target account number selection unit is configured to execute receiving of the sub account number list returned by the server, and detection of selection operation of a client account on a target sub account number in the sub account number list;
and the sub-account login unit is configured to execute a sub-account login request aiming at the target sub-account in response to the selection operation, and send the sub-account login request to the server, wherein the sub-account login request is used for indicating the server to execute login processing of the target sub-account.
6. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the account login method of claim 1 or 2.
7. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the account login method of claim 3.
8. A computer-readable storage medium in which instructions, when executed by a processor of a server, enable the server to perform the account login method according to claim 1 or 2.
9. A computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the account login method of claim 3.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the account login method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110090932.XA CN112836198A (en) | 2021-01-22 | 2021-01-22 | Account login method and device, server, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110090932.XA CN112836198A (en) | 2021-01-22 | 2021-01-22 | Account login method and device, server, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112836198A true CN112836198A (en) | 2021-05-25 |
Family
ID=75931171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110090932.XA Pending CN112836198A (en) | 2021-01-22 | 2021-01-22 | Account login method and device, server, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112836198A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113599833A (en) * | 2021-08-03 | 2021-11-05 | 深圳市乐天堂科技有限公司 | Account login method and device, computing equipment and storage medium |
CN113642894A (en) * | 2021-08-16 | 2021-11-12 | 无锡美林数联科技有限公司 | Resource management system and method based on industrial internet |
CN113901114A (en) * | 2021-10-25 | 2022-01-07 | 北京达佳互联信息技术有限公司 | Data display method and device, electronic equipment and storage medium |
CN114157483A (en) * | 2021-12-02 | 2022-03-08 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN114172713A (en) * | 2021-12-02 | 2022-03-11 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN114760346A (en) * | 2022-03-14 | 2022-07-15 | 浙江毫微米科技有限公司 | Equipment switching method, device and system and electronic equipment |
CN114978728A (en) * | 2022-05-27 | 2022-08-30 | 中国银行股份有限公司 | Login method, device, equipment and medium based on multiple applications |
CN116566702A (en) * | 2023-05-23 | 2023-08-08 | 广州启睿信息科技有限公司 | Unified user account login and management method and device |
CN116800546A (en) * | 2023-08-24 | 2023-09-22 | 北京建筑大学 | User switching method, system, terminal and storage medium |
CN116996475A (en) * | 2023-07-06 | 2023-11-03 | 上海奥玩士信息技术有限公司 | Account use method, device, medium and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1829202A (en) * | 2005-03-02 | 2006-09-06 | 华为技术有限公司 | System and method for multiple account number simultaneously realizing IMPS service on one client |
CN1905443A (en) * | 2005-07-30 | 2007-01-31 | 腾讯科技(深圳)有限公司 | Method and system of automatic login server for client |
CN1960345A (en) * | 2006-09-28 | 2007-05-09 | 阿里巴巴公司 | Method and system for creating multi-accounting number users in instant communicating system |
CN104753943A (en) * | 2015-03-30 | 2015-07-01 | 努比亚技术有限公司 | Method and device for log-in control of third-party account |
CN105915491A (en) * | 2015-11-18 | 2016-08-31 | 乐视网信息技术(北京)股份有限公司 | Account number login method and device |
CN108965331A (en) * | 2018-08-29 | 2018-12-07 | 腾讯科技(深圳)有限公司 | Log in method of calibration, device and login system |
-
2021
- 2021-01-22 CN CN202110090932.XA patent/CN112836198A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1829202A (en) * | 2005-03-02 | 2006-09-06 | 华为技术有限公司 | System and method for multiple account number simultaneously realizing IMPS service on one client |
CN1905443A (en) * | 2005-07-30 | 2007-01-31 | 腾讯科技(深圳)有限公司 | Method and system of automatic login server for client |
CN1960345A (en) * | 2006-09-28 | 2007-05-09 | 阿里巴巴公司 | Method and system for creating multi-accounting number users in instant communicating system |
CN104753943A (en) * | 2015-03-30 | 2015-07-01 | 努比亚技术有限公司 | Method and device for log-in control of third-party account |
CN105915491A (en) * | 2015-11-18 | 2016-08-31 | 乐视网信息技术(北京)股份有限公司 | Account number login method and device |
CN108965331A (en) * | 2018-08-29 | 2018-12-07 | 腾讯科技(深圳)有限公司 | Log in method of calibration, device and login system |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113599833B (en) * | 2021-08-03 | 2024-03-12 | 深圳市乐天堂科技有限公司 | Account login method, account login device, computing equipment and storage medium |
CN113599833A (en) * | 2021-08-03 | 2021-11-05 | 深圳市乐天堂科技有限公司 | Account login method and device, computing equipment and storage medium |
CN113642894A (en) * | 2021-08-16 | 2021-11-12 | 无锡美林数联科技有限公司 | Resource management system and method based on industrial internet |
CN113901114A (en) * | 2021-10-25 | 2022-01-07 | 北京达佳互联信息技术有限公司 | Data display method and device, electronic equipment and storage medium |
CN114157483A (en) * | 2021-12-02 | 2022-03-08 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN114172713A (en) * | 2021-12-02 | 2022-03-11 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN114157483B (en) * | 2021-12-02 | 2024-04-05 | 北京金山云网络技术有限公司 | Login method, login device, electronic equipment and storage medium |
CN114760346A (en) * | 2022-03-14 | 2022-07-15 | 浙江毫微米科技有限公司 | Equipment switching method, device and system and electronic equipment |
CN114978728A (en) * | 2022-05-27 | 2022-08-30 | 中国银行股份有限公司 | Login method, device, equipment and medium based on multiple applications |
CN116566702A (en) * | 2023-05-23 | 2023-08-08 | 广州启睿信息科技有限公司 | Unified user account login and management method and device |
CN116996475A (en) * | 2023-07-06 | 2023-11-03 | 上海奥玩士信息技术有限公司 | Account use method, device, medium and equipment |
CN116996475B (en) * | 2023-07-06 | 2024-05-03 | 上海奥玩士信息技术有限公司 | Account use method, device, medium and equipment |
CN116800546B (en) * | 2023-08-24 | 2023-11-03 | 北京建筑大学 | User switching method, system, terminal and storage medium |
CN116800546A (en) * | 2023-08-24 | 2023-09-22 | 北京建筑大学 | User switching method, system, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112836198A (en) | Account login method and device, server, electronic equipment and storage medium | |
CN105472771B (en) | Wireless connection method and device | |
CN106790043B (en) | Method and device for sending message in live broadcast application | |
US10334282B2 (en) | Methods and devices for live broadcasting based on live broadcasting application | |
CN105095366B (en) | Word message treating method and apparatus | |
CN107959757B (en) | User information processing method and device, APP server and terminal equipment | |
KR20170126388A (en) | Method, device and system for executing business process | |
CN105847111A (en) | Method and device for adding friend | |
CN104954361B (en) | Contact person's verification method, apparatus and system | |
CN111314211A (en) | Message forwarding method and device | |
CN108111396B (en) | Method, device and equipment for sequencing conversation messages | |
CN112202582B (en) | Group establishing method and device, electronic equipment and storage medium | |
CN104899501A (en) | Dialog list display method and device and terminal | |
CN108011990B (en) | Contact management method and device | |
CN112583896A (en) | Session management method, session management device, electronic equipment, session management server and storage medium | |
US10263925B2 (en) | Method, device and medium for sending message | |
CN105721283B (en) | Method, device and equipment for sending screenshot message | |
CN114915923A (en) | 5G message-as-a-service triggering method and device, electronic equipment and storage medium | |
CN109842543B (en) | Instant messaging method and device and instant messaging message storage method and device | |
CN106506808B (en) | Method and device for prompting communication message | |
CN104780256A (en) | Address book management method and device and intelligent terminal | |
CN104796323A (en) | E-mail sending method, mail server and mail client | |
CN110121148B (en) | Interphone team method and device | |
CN113498074A (en) | Equipment network distribution method and device and electronic equipment | |
US10516849B2 (en) | Video call method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |