Account login method, device, electronic device and storage medium

By establishing Bluetooth connections and server verification between different terminals, the problem of cumbersome authentication of the same account in different terminals is solved, and convenient login and security guarantee of the account is achieved.

CN115103361BActive Publication Date: 2025-03-25PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210725041.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-23
Publication Date
2025-03-25
Estimated Expiration
2042-06-23

AI Technical Summary

Technical Problem

When logging in and authenticating with the same account between different terminals, users need to enter their account and password separately, resulting in cumbersome operations.

Method used

By generating a login request carrying the target account at the first terminal, sending it to the server and receiving verification information, establishing a Bluetooth connection channel, sending verification information to the second terminal, generating an authentication login request and sending it to the server, and finally logging in based on the server's authentication login results.

Benefits of technology

The login authentication process of the same account in different terminals is simplified. Users only need to enter the target account without entering a password in each terminal, which improves operational convenience and ensures security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115103361B_ABST
    Figure CN115103361B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an account login method, device, electronic device and storage medium; the embodiment of the present application can generate a login request carrying the target account in response to the login operation of the target account; send the login request to the server, and receive the verification information fed back by the server based on the login request; in response to the verification operation of the target account, establish a connection channel connected to the second terminal via Bluetooth; based on the connection channel, send the verification information to the second terminal logged in with the target account, so that the second terminal generates an authentication login request based on the received verification information, and sends the authentication login request to the server; receive the authentication login result sent by the server; log in to the target account according to the authentication login result. Therefore, the scheme can simplify the cumbersomeness of login authentication of the same account in different terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an account login method, device, electronic device and storage medium. Background Art

[0002] In recent years, many software systems have developed clients for use on electronic terminals such as computers, mobile phones, and tablets to facilitate user browsing. Of course, these software systems can usually also be logged in and browsed using browsers installed on electronic terminals.

[0003] However, when the same account needs to be logged in on different terminals, for example, after logging in on the mobile phone app, it is also necessary to log in on the PC, then it is often necessary to enter the corresponding account and password on the app and PC respectively, which is a cumbersome operation process for users. Summary of the invention

[0004] The embodiments of the present application provide an account login method, device, electronic device and storage medium, which can simplify the complexity of login authentication of the same account on different terminals.

[0005] In a first aspect, an embodiment of the present application provides an account login method, which is applied to a first terminal. The account login method includes:

[0006] In response to a login operation of a target account, generating a login request carrying the target account;

[0007] Send a login request to the server and receive verification information fed back by the server based on the login request;

[0008] In response to the verification operation of the target account, establishing a connection channel for a Bluetooth connection with the second terminal;

[0009] Based on the connection channel, send verification information to the second terminal logged in with the target account, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal;

[0010] Receiving the authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request;

[0011] Log in to the target account based on the authentication login result.

[0012] In a second aspect, an embodiment of the present application provides an account login method, which is applied to a server, and the login authentication method includes:

[0013] Receiving a login request sent by the first terminal, wherein the login request carries a target account;

[0014] Receive a login request and generate verification information for the login request;

[0015] Sending the verification information to the first terminal, so that the first terminal establishes a connection channel with the second terminal via Bluetooth in response to the verification operation of the target account, and sends the verification information to the second terminal logged in with the target account based on the Bluetooth connection channel;

[0016] Receiving an authentication login request and generating an authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information;

[0017] The authentication login result is sent to the first terminal, so that the first terminal logs into the target account according to the authentication login result.

[0018] In a third aspect, the embodiment of the present application further provides an account login device, including:

[0019] A login request generating unit, configured to generate a login request carrying a target account in response to a login operation of the target account;

[0020] A login request sending unit, used to send a login request to a server, and receive verification information fed back by the server based on the login request;

[0021] A Bluetooth connection unit, configured to establish a connection channel for a Bluetooth connection with a second terminal in response to a verification operation of a target account;

[0022] The first verification information is sent, which is used to send the verification information to the second terminal logged in with the target account based on the connection channel, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal;

[0023] An authentication login result receiving unit, used to receive an authentication login result sent by a server, wherein the authentication login result is generated by the server according to a received authentication login request;

[0024] The login unit is used to log in to the target account according to the authentication login result.

[0025] In a fourth aspect, an embodiment of the present application further provides an account login device, comprising:

[0026] A login request receiving unit, configured to receive a login request sent by the first terminal, wherein the login request carries a target account;

[0027] A verification information generating unit, used to receive a login request and generate verification information for the login request;

[0028] A second verification information sending unit, configured to send verification information to the first terminal, so that the first terminal establishes a connection channel connected to the second terminal via Bluetooth in response to the verification operation of the target account, and sends verification information to the second terminal logged in with the target account based on the Bluetooth connection channel;

[0029] An authentication login result generating unit, configured to receive an authentication login request and generate an authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information;

[0030] The authentication login result sending unit is used to send the authentication login result to the first terminal, so that the first terminal logs into the target account according to the authentication login result.

[0031] In a fifth aspect, an embodiment of the present application also provides an electronic device, comprising a memory storing multiple instructions; a processor loads instructions from the memory to execute the steps in any account login method provided in the embodiment of the present application.

[0032] In a sixth aspect, an embodiment of the present application also provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any one of the account login methods provided in the embodiments of the present application.

[0033] The embodiment of the present application can generate a login request carrying the target account in response to the login operation of the target account; send the login request to the server, and receive the verification information fed back by the server based on the login request; establish a connection channel with the second terminal connected to the Bluetooth in response to the verification operation of the target account; send the verification information to the second terminal logged in with the target account based on the connection channel, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction to request the target account to log in at the first terminal; receive the authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request; log in to the target account according to the authentication login result. In the present application, the account information of the first terminal can be sent to the server, and then the server generates the verification information according to the account information and feeds it back to the first terminal, and the verification information is sent to the second terminal through the first terminal, and the second terminal generates the authentication login request according to the verification information and sends it to the server, and finally the authentication login result sent by the server is received to achieve the login. Therefore, the user only needs to enter the target account, and the second terminal sends an authentication login request to the server through Bluetooth connection, thereby ensuring security without entering a password, thereby logging into the target account of the first terminal, thereby simplifying the complexity of login authentication for the same account on different terminals. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1a It is a scenario diagram of the account login method provided in an embodiment of the present application;

[0036] Figure 1b It is a flowchart of an account login method provided in an embodiment of the present application;

[0037] Figure 2 It is a flowchart of another account login method provided in an embodiment of the present application;

[0038] Figure 3 It is a schematic diagram of the account login method provided in the embodiment of the present application applied in a server scenario;

[0039] Figure 4 This is a schematic diagram of the first structure of the account login device provided in the embodiment of the present application;

[0040] Figure 5 This is a second structural diagram of the account login device provided in an embodiment of the present application;

[0041] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0043] Embodiments of the present application provide an account login method, device, electronic device, and storage medium.

[0044] The account login device can be integrated into an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (PC); the server can be a single server or a server cluster composed of multiple servers.

[0045] In some embodiments, the account login device can also be integrated into multiple electronic devices. For example, the account login device can be integrated into multiple servers, and the account login method of the present application can be implemented by multiple servers.

[0046] In some embodiments, the server may also be implemented in the form of a terminal.

[0047] For example, refer to Figure 1a , the electronic device can be a server. The server in the embodiment of the present application is used to generate a login request carrying the target account in response to the login operation of the target account; send the login request to the server, and receive the verification information fed back by the server based on the login request; in response to the verification operation of the target account, establish a connection channel with the second terminal connected to Bluetooth; based on the connection channel, send the verification information to the second terminal logged in with the target account, so that the second terminal generates an authentication login request based on the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal; receive the authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request; according to the authentication login result, log in to the target account.

[0048] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0049] In this embodiment, a method for logging in to an account is provided, such as Figure 1b As shown, the account login method is applied to the first terminal, and the specific process of the account login method can be as follows:

[0050] 110. In response to a login operation of a target account, generate a login request carrying the target account.

[0051] The target account refers to the account that requests login, and the login operation of the target account refers to inputting the target account on the login interface of the first terminal, wherein the first terminal may be an APP (mobile software, Application) terminal or a PC (personal computer, Personal Computer) terminal. For example, in some embodiments, when the first terminal is a mobile phone, the login interface of the first terminal refers to the interface for inputting the account and password on the mobile phone client, and when the first terminal is a computer, the login interface of the first terminal may refer to the interface for inputting the account and password on the computer client or web page.

[0052] After entering the target account, you can generate a login request carrying the target account by clicking the "Login" button on the login interface. When entering the target account, you can use components such as login controls to obtain user permissions with the user's consent, record the target account based on the login operation, and then generate a login request carrying the target account.

[0053] The login request may carry the identifier of the target application. The target application may be any application configured in the network device. The target application may be a management application, such as Telnet, SSH, SNMP, etc. The login request may be a request sent by a user using a terminal to a network device to log in to the target application in the network device.

[0054] 120. Send a login request to the server, and receive verification information fed back by the server based on the login request.

[0055] A server is a type of computer that has high-speed CPU computing power, long-term reliable operation, powerful I / O external data throughput capacity, and better scalability.

[0056] In some embodiments, the first terminal may send a login request to the server by wired transmission or wireless transmission. After receiving the login request, the server processes the login request to obtain verification information, and finally feeds back the verification information to the first terminal by wired transmission or wireless transmission. The verification information refers to information data obtained in an encrypted or encoded form for the login request, and the verification information corresponds to the current login request. For example, in some embodiments, tag data may be generated based on the login request, wherein the tag data may include at least the target account information of the login request, the login request time information, and the encryption information, and then the tag data is encoded to obtain verification information for characterizing the information of the target account of this login.

[0057] 130. In response to the verification operation of the target account, establish a connection channel for the Bluetooth connection with the second terminal.

[0058] After the verification information is determined, the verification operation can be performed manually or automatically. The verification operation refers to the login verification of the target account logged in on the first terminal. For example, in some embodiments, after receiving the verification information, a "verification" button can be displayed on the login interface of the first terminal, and the user can establish a connection channel with the second terminal via Bluetooth by clicking the "verification" button. The second terminal can be a PC (personal computer) terminal or an APP (mobile phone software, Application) terminal. In the embodiment of the present application, the second terminal is a terminal logged in with a target account. When the second terminal is a PC (personal computer, Personal Computer) terminal, the first terminal can be an APP (mobile phone software, Application) terminal. When the second terminal is an APP (mobile phone software, Application) terminal, the first terminal can be a PC (personal computer, Personal Computer) terminal.

[0059] Establishing a connection channel for a Bluetooth connection with a second terminal refers to establishing a Bluetooth connection between the first terminal and the second terminal.

[0060] In the embodiment of the present application, in response to the verification operation of the target account, before establishing a connection channel for the Bluetooth connection with the second terminal, the method further includes:

[0061] Determine, based on the verification information, a second terminal that has logged in the target account;

[0062] Sending a Bluetooth activation message to the server, so that the server generates a Bluetooth activation request according to the received Bluetooth activation message, and sends the Bluetooth activation request to the second terminal;

[0063] A Bluetooth on message returned by the second terminal is received, and based on the Bluetooth on message, a verification interface of the target account is displayed on the first terminal, wherein the Bluetooth on message is used to indicate that the Bluetooth of the second terminal is in an on state.

[0064] The verification information may store information of the second terminal that has logged into the target account. The first terminal may be based on the information of the second terminal in the verification information, wherein the information of the second terminal may be information of the second terminal device, which may include model information of the device, mac address (Media Access Control Address, media access control address), etc.

[0065] The Bluetooth startup message refers to a request to turn on the Bluetooth of the second terminal. The request can be sent to the server via a wired connection or a wireless connection. After receiving the Bluetooth startup message, the server determines the second terminal based on the Bluetooth startup message, and then sends a Bluetooth startup request to the second terminal, so that the second terminal turns on Bluetooth.

[0066] After the second terminal turns on Bluetooth, the second terminal may send a Bluetooth turn-on message to the first terminal, thereby indicating that the Bluetooth of the second terminal has been turned on. The second terminal may send the Bluetooth turn-on message to the first terminal in an equivalent manner via a wireless network.

[0067] After receiving the Bluetooth on message, the first terminal displays the verification interface of the target account, which is used by the user to determine whether to start verification. For example, in the embodiment of the present application, the verification interface may be a "verify" button superimposed on the login interface. After the user clicks the "verify" button, the first terminal in the Bluetooth on state may establish a Bluetooth connection with the second terminal in the Bluetooth on state.

[0068] In the embodiment of the present application, receiving the Bluetooth activation message returned by the second terminal, and displaying the verification interface of the target account on the first terminal based on the Bluetooth activation message, includes:

[0069] Based on the Bluetooth activation message, determining a location distance relationship between the second terminal and the first terminal;

[0070] When the location distance relationship between the second terminal and the first terminal meets the preset location distance requirement, the verification interface of the target account is displayed on the first terminal.

[0071] The location distance relationship refers to the distance between the second terminal and the first terminal. The preset location distance requirement may refer to the distance between the second terminal and the first terminal being less than a preset threshold. For example, in an embodiment of the present application, the preset location distance requirement may be that the distance between the second terminal and the first terminal is 5m. When the actual distance between the second terminal and the first terminal is 3m, the location distance relationship between the second terminal and the first terminal meets the preset location distance requirement, and a verification interface for the target account is displayed on the first terminal. When the actual distance between the second terminal and the first terminal is 6m, the location distance relationship between the second terminal and the first terminal does not meet the preset location distance requirement. The first terminal may prompt the user again whether to confirm that the second terminal is the target second terminal. If so, a verification interface for the target account is displayed on the first terminal.

[0072] 140. Based on the connection channel, send verification information to the second terminal logged in with the target account, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal.

[0073] The connection channel refers to the first terminal and the second terminal connected via Bluetooth. The first terminal can send verification information to the second terminal based on the connection channel established by the Bluetooth connection. The connection channel can include a low-speed Bluetooth channel and a high-speed Bluetooth channel. When selecting the connection channel, it can be selected according to the need to transmit the verification information.

[0074] The authentication login request refers to a request for logging into a target account at the first terminal. The authentication login request may be generated by the second terminal according to the verification information sent by the first terminal. The authentication login request is an instruction for requesting the server to allow the first terminal to log into the target account.

[0075] 150. Receive an authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request.

[0076] After receiving the authentication login request, the server generates an authentication login result based on the authentication login request, wherein generating the authentication login result based on the authentication login request includes:

[0077] Determine the verification information in the authentication login request, parse the verification information in the authentication login request, and thus determine the request time of the login request in the authentication login request and the target account in the authentication login request; determine whether the request time of the login request is within the validity period, and if so, determine whether the first terminal has the login authority of the target account based on the login information inside the server, and if so, generate an authentication login result for the first terminal to log in to the target account.

[0078] 160. Log in to the target account based on the authentication login result.

[0079] After receiving the authentication login result, the first terminal can automatically log in to the target account. In some embodiments, the first terminal can automatically input and log in the password of the target account by receiving the password corresponding to the target account stored in the server, or receive the session (session control) information of the target account generated by the server to log in to the target account.

[0080] The method provided by the embodiment of the present application can generate a login request carrying the target account in response to the login operation of the target account; send the login request to the server, and receive the verification information fed back by the server based on the login request; establish a connection channel connected to the second terminal via Bluetooth in response to the verification operation of the target account; send the verification information to the second terminal logged in with the target account based on the connection channel, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal; receive the authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request; log in to the target account according to the authentication login result. As can be seen from the above, this solution allows the user to only enter the target account, and the second terminal sends the authentication login request to the server through the Bluetooth connection, thereby ensuring security without entering a password, thereby realizing the login of the target account of the first terminal, thereby simplifying the complexity of login authentication of the same account at different terminals.

[0081] Figure 2 A flowchart of another account login method provided in an embodiment of the present application, such as Figure 2 As shown, the account login method is applied to the server, and the specific process of the account login method can be as follows:

[0082] 210. Receive a login request sent by the first terminal, where the login request carries a target account.

[0083] The login request may carry the identifier of the target application. The target application may be any application configured in the network device. The target application may be a management application, such as Telnet, SSH, SNMP, etc. The login request may be a request sent by a user using a terminal to a network device to log in to the target application in the network device.

[0084] The server may receive the login request sent by the first terminal through a wireless network connection.

[0085] 220. Receive a login request and generate verification information for the login request.

[0086] After receiving the login request, the server generates verification information based on the login request. The method of generating the verification information of the login request includes:

[0087] Determine, according to the login request, label data for receiving the login request, the label data at least including target account information of the login request, login request time information, and encryption information;

[0088] The tag data is encoded to obtain the encoded information of the tag data, and the encoded information is recorded as the verification information of the login request.

[0089] The tag data may be a tag generated according to the login request and containing target account information, login request time information, and encryption information. For example, in some embodiments, the tag data may be a ticket.

[0090] Encoding processing refers to encrypting the tag data to form a hash string. For example, in an embodiment of the present application, when the tag data is a ticket, the ticket can be encoded to obtain a hash string.

[0091] 230. Send the verification information to the first terminal, so that the first terminal establishes a connection channel with the second terminal via Bluetooth in response to the verification operation of the target account, and sends the verification information to the second terminal logged in with the target account based on the Bluetooth connection channel.

[0092] The server sends the verification information to the first terminal. After receiving the verification information, the first terminal determines the second terminal that has logged in the target account through the verification information, and then sends a Bluetooth startup message to the server, so that the server generates a Bluetooth startup request according to the received Bluetooth startup message, and sends the Bluetooth startup request to the second terminal; receives the Bluetooth startup message returned by the second terminal, and displays the verification interface of the target account on the first terminal based on the Bluetooth startup message. The verification interface is verified, so that the first terminal and the second terminal are connected by Bluetooth, and the first terminal sends the verification information to the second terminal through the connection channel.

[0093] 240. Receive an authentication login request and generate an authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information.

[0094] After the second terminal receives the verification information from the first terminal, it generates an authentication login request based on the verification information, wherein the authentication login request includes the verification information, and sends the authentication login request to the server. After the server receives the authentication login request, it performs authentication processing on the verification information in the authentication login request to obtain an authentication login result.

[0095] Among them, in the embodiment of the present application, the method of receiving the authentication login request and generating the authentication login result includes:

[0096] Decoding the authentication login request to determine the login request time information in the authentication login request;

[0097] If the login request time information is within the validity period, determine the target account in the authentication login request;

[0098] Determining whether the first terminal has login authority for the target account;

[0099] If the first terminal has the login authority of the target account, an authentication login result is generated requesting the target account to log in at the first terminal.

[0100] After the server obtains the authentication login request, the server needs to decode the verification information obtained by encoding in the authentication login request, so as to obtain the target account information and login request time information in the verification information. In some embodiments, the decoding process can be performed according to the encoded hash function rule.

[0101] After obtaining the target account information and login request time information, the server first determines whether the time in the login request time information is within the validity period, where the validity period refers to the time when the login request is valid. For example, in some embodiments, when the time in the login request time information is 19:30 and the validity period is 5 minutes, the latest time to receive the authentication login request is 19:35. If the time to receive the authentication login request is 19:34, the authentication login request is a valid authentication login request, and subsequent authentication can be performed. If the time to receive the authentication login request is 19:40, the time to receive the authentication login request exceeds the time specified in the validity period, then the authentication login request is an invalid authentication login request, and the target account of the first terminal cannot be logged in.

[0102] After determining that the authentication login request is a valid authentication login request, the server determines whether the first terminal has the login authority of the target account. When determining whether the first terminal has the login authority of the target account, the server can make a determination based on a permission list pre-stored in the server, or by comparing the target account information of the first terminal and the second terminal to determine whether they are consistent. If the first terminal has the login authority of the target account, the server generates an authentication login result requesting the target account to log in at the first terminal.

[0103] 250. Send the authentication login result to the first terminal, so that the first terminal logs into the target account according to the authentication login result.

[0104] Among them, the server sends the authentication login result to the first terminal, so that the first terminal can automatically log in to the target account. In some embodiments, the server can send the password corresponding to the pre-stored target account to the first terminal, thereby realizing automatic input and login of the password, and can also generate session (session control) information of the target account, so that the first terminal can log in directly. The method provided by the embodiment of the present application can receive a login request sent by the first terminal, and the login request carries the target account; receive the login request, generate verification information of the login request; send the verification information to the first terminal, so that the first terminal responds to the verification operation of the target account, establishes a connection channel connected to the second terminal by Bluetooth, and sends verification information to the second terminal logged in with the target account based on the Bluetooth connection channel; receive the authentication login request, generate the authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information; send the authentication login result to the first terminal, so that the first terminal can log in to the target account according to the authentication login result. As can be seen from the above, this solution allows the user to only enter the target account, and the second terminal sends an authentication login request to the server through a Bluetooth connection, thereby ensuring security without having to enter a password, thereby achieving login of the target account of the first terminal, thereby simplifying the tediousness of login authentication of the same account on different terminals.

[0105] The method described in the above embodiment will be further described in detail below.

[0106] In this embodiment, account login will be taken as an example to explain the method of the embodiment of the present application in detail.

[0107] like Figure 3 As shown, the specific process of an account login method is as follows:

[0108] 301. In response to a login operation on a login interface of a PC terminal browser, a login request carrying a target account is generated;

[0109] 302. The PC terminal sends a login request to the server. After receiving the login request, the server generates a ticket based on the login request, wherein the ticket includes at least a target account, a time factor, and a server-side public key corresponding to the target account.

[0110] The time factor is the time when the login request is sent.

[0111] 303. The server encodes the ticket and obtains a hash string corresponding to the ticket.

[0112] The hash string includes a validity period for determining whether the hash string is valid.

[0113] 304. The server stores the hash string and sends the hash string to the PC terminal;

[0114] 305. After receiving the hash string, the PC terminal generates a verification button on the login interface of the PC terminal;

[0115] 306. In response to clicking the verification button, the PC terminal sends the hash string to the APP terminal logged in with the target account via Bluetooth connection;

[0116] 307. The APP terminal logged in with the target account generates an authentication login request based on the received hash string, and sends the authentication login request to the server;

[0117] 308. After receiving the authentication login request, the server decodes the authentication login request and obtains a ticket;

[0118] 309. The server determines whether the time factor in the ticket is within the validity period. If the time factor is within the validity period, the server determines whether the target account in the ticket is within the permission range. If the target account is within the permission range, the server generates a result of authentication success.

[0119] The time factor is the time of the login request, and the validity period is the validity period added by the server when encoding the hash string. By comparing the decoded time with the login request time and the validity period, it is determined whether the obtained ticket is within the validity period.

[0120] 310. The server sends the authentication result to the PC, and the PC logs in to the target account based on the authentication result.

[0121] When the server sends the authentication result to the PC, the server will send a tick to the PC and generate the session information of the login account under the ticket, so that the browser login on the PC is successful.

[0122] As can be seen from the above, the user only needs to enter the target account, and the second terminal sends a hash string to the server through Bluetooth connection, thereby ensuring security without entering a password, thereby logging into the target account in the PC browser, thereby simplifying the complexity of login authentication for the same account on different terminals.

[0123] In order to better implement the above method, the embodiment of the present application also provides an account login device, which can be integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.

[0124] For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the account login device specifically integrated into an electronic device as an example.

[0125] For example, Figure 4 As shown, the account login device may include:

[0126] A login request generating unit 401, configured to generate a login request carrying a target account in response to a login operation of the target account;

[0127] A login request sending unit 402, configured to send a login request to a server and receive verification information fed back by the server based on the login request;

[0128] A Bluetooth connection unit 403, configured to establish a connection channel for a Bluetooth connection with a second terminal in response to a verification operation of the target account;

[0129] The first verification information sending unit 404 is used to send verification information to the second terminal logged in with the target account based on the connection channel, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal;

[0130] The authentication login result receiving unit 405 is used to receive the authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request;

[0131] The login unit 406 is used to log in to the target account according to the authentication login result.

[0132] In the embodiment of the present application, the Bluetooth connection unit 403 is further specifically used for:

[0133] According to the verification information, a second terminal having the target account logged in is determined.

[0134] In the embodiment of the present application, the Bluetooth connection unit 403 is further specifically used for:

[0135] Sending a Bluetooth activation message to the server, so that the server generates a Bluetooth activation request according to the received Bluetooth activation message, and sends the Bluetooth activation request to the second terminal;

[0136] A Bluetooth on message returned by the second terminal is received, and based on the Bluetooth on message, a verification interface of the target account is displayed on the first terminal, wherein the Bluetooth on message is used to indicate that the Bluetooth of the second terminal is in an on state.

[0137] In the embodiment of the present application, the Bluetooth connection unit 403 is further specifically used for:

[0138] Based on the Bluetooth activation message, determining a location distance relationship between the second terminal and the first terminal;

[0139] When the location distance relationship between the second terminal and the first terminal meets the preset location distance requirement, the verification interface of the target account is displayed on the first terminal.

[0140] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0141] As can be seen from the above, the account login device of this embodiment comprises a login request generating unit 401, which is used to generate a login request carrying the target account in response to the login operation of the target account; a login request sending unit 402, which is used to send the login request to the server and receive the verification information fed back by the server based on the login request; a Bluetooth connection unit 403, which is used to establish a connection channel with the second terminal connected to Bluetooth in response to the verification operation of the target account; a first verification information sending unit 404, which is used to send verification information to the second terminal logged in with the target account based on the connection channel, so that the second terminal generates an authentication login request based on the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal; an authentication login result receiving unit 405, which is used to receive the authentication login result sent by the server, wherein the authentication login result is generated by the server based on the received authentication login request; and a login unit 406, which is used to log in to the target account according to the authentication login result. Therefore, the user only needs to enter the target account, and the second terminal sends an authentication login request to the server through Bluetooth connection, thereby ensuring security without entering a password, thereby logging into the target account of the first terminal, thereby simplifying the complexity of login authentication for the same account on different terminals.

[0142] For example, Figure 5 As shown, the account login device may also include:

[0143] The login request receiving unit 501 is used to receive a login request sent by the first terminal, where the login request carries a target account;

[0144] The verification information generating unit 502 is used to receive a login request and generate verification information for the login request;

[0145] The second verification information sending unit 503 is used to send the verification information to the first terminal, so that the first terminal establishes a connection channel with the second terminal via Bluetooth in response to the verification operation of the target account, and sends the verification information to the second terminal logged in with the target account based on the Bluetooth connection channel;

[0146] The authentication login result generating unit 504 is used to receive the authentication login request and generate the authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information;

[0147] The authentication login result sending unit 505 is used to send the authentication login result to the first terminal, so that the first terminal logs into the target account according to the authentication login result.

[0148] In the embodiment of the present application, the verification information generating unit 502 is further specifically used for:

[0149] Determine, according to the login request, label data for receiving the login request, the label data at least including target account information of the login request, login request time information, and encryption information;

[0150] The tag data is encoded to obtain the encoded information of the tag data, and the encoded information is recorded as the verification information of the login request.

[0151] In the embodiment of the present application, the authentication login result generating unit 504 is further specifically used for:

[0152] Decoding the authentication login request to determine the login request time information in the authentication login request;

[0153] If the login request time information is within the validity period, determine the target account in the authentication login request;

[0154] Determining whether the first terminal has login authority for the target account;

[0155] If the first terminal has the login authority of the target account, an authentication login result is generated requesting the target account to log in at the first terminal.

[0156] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0157] As can be seen from the above, the account login device of this embodiment comprises a login request receiving unit 501, which is used to receive a login request sent by a first terminal, wherein the login request carries a target account; a verification information generating unit 502, which is used to receive the login request and generate verification information of the login request; a second verification information sending unit 503, which is used to send the verification information to the first terminal, so that the first terminal responds to the verification operation of the target account, establishes a connection channel connected to the second terminal via Bluetooth, and sends verification information to the second terminal logged in with the target account based on the Bluetooth connection channel; an authentication login result generating unit 504, which is used to receive the authentication login request and generate the authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information; and an authentication login result sending unit 505, which is used to send the authentication login result to the first terminal, so that the first terminal logs in the target account according to the authentication login result. Thus, the user only needs to enter the target account, and the second terminal sends the authentication login request to the server through the Bluetooth connection, so that the target account of the first terminal can be logged in without entering a password while ensuring security, thereby simplifying the complexity of login authentication of the same account in different terminals.

[0158] The embodiment of the present application also provides an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc. The server can be a single server or a server cluster composed of multiple servers, etc.

[0159] In some embodiments, the account login device can also be integrated into multiple electronic devices. For example, the account login device can be integrated into multiple servers, and the account login method of the present application can be implemented by multiple servers.

[0160] In this embodiment, the electronic device of this embodiment is a terminal as an example for detailed description, for example, Figure 6 As shown, it shows a schematic diagram of the structure of the terminal involved in the embodiment of the present application, specifically:

[0161] The terminal may include one or more processors 601 of processing cores, one or more computer-readable storage media memories 602, a power supply 603, an input module 604, and a communication module 605. Those skilled in the art will appreciate that Figure 6 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0162] The processor 601 is the control center of the terminal, and uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal and processes data by running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602. In some embodiments, the processor 601 may include one or more processing cores; in some embodiments, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

[0163] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0164] The terminal also includes a power supply 603 for supplying power to various components. In some embodiments, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 603 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0165] The terminal may further include an input module 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0166] The terminal may also include a communication module 605. In some embodiments, the communication module 605 may include a wireless module. The terminal may perform short-range wireless transmission through the wireless module of the communication module 605, thereby providing the user with wireless broadband Internet access. For example, the communication module 605 may be used to help the user send and receive emails, browse web pages, and access streaming media.

[0167] Although not shown, the terminal may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 will run the applications stored in the memory 602 to implement various functions.

[0168] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the steps in any of the above-mentioned account login methods when executed by a processor.

[0169] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0170] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0171] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple instructions are stored, and the instructions can be loaded by a processor to execute the steps in any account login method provided in the embodiment of the present application.

[0172] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0173] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions.

[0174] Since the instructions stored in the storage medium can execute the steps in any one of the account login methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the account login methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0175] The above is a detailed introduction to an account login method, device, electronic device and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An account login method, characterized in that: Applied to the first terminal, the account login method includes: In response to a login operation of a target account, generating a login request carrying the target account; Sending the login request to a server, and receiving verification information fed back by the server based on the login request; Determining, based on the verification information, a second terminal logged in with the target account; Sending a Bluetooth activation message to the server, so that the server generates a Bluetooth activation request according to the received Bluetooth activation message, and sends the Bluetooth activation request to the second terminal; receiving a Bluetooth on message returned by the second terminal, and displaying a verification interface of the target account on the first terminal based on the Bluetooth on message, wherein the Bluetooth on message is used to indicate that the Bluetooth of the second terminal is in an on state; In response to the verification operation of the target account, establishing a connection channel for a Bluetooth connection with a second terminal; Based on the connection channel, the verification information is sent to a second terminal logged in with the target account, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal; Receiving an authentication login result sent by a server, wherein the authentication login result is generated by the server according to the received authentication login request; Log in to the target account according to the authentication login result.

2. The method according to claim 1, characterized in that The receiving the Bluetooth activation message returned by the second terminal, and displaying the verification interface of the target account on the first terminal based on the Bluetooth activation message, includes: Based on the Bluetooth activation message, determining a location distance relationship between the second terminal and the first terminal; When the location distance relationship between the second terminal and the first terminal meets the preset location distance requirement, the verification interface of the target account is displayed on the first terminal.

3. An account login method, characterized in that: Applied to the server, the account login method includes: Receiving a login request sent by the first terminal, wherein the login request carries a target account; receiving the login request, and generating verification information of the login request; Sending the verification information to the first terminal so that the first terminal determines the second terminal logged in with the target account and sends a Bluetooth activation message; Generate a Bluetooth startup request according to the received Bluetooth startup message, and send the Bluetooth startup request to the second terminal, so that the first terminal displays the verification interface of the target account based on the Bluetooth startup message returned by the second terminal, and establishes a connection channel with the second terminal via Bluetooth in response to the verification operation of the target account, and sends the verification information to the second terminal logged in with the target account based on the Bluetooth connection channel, wherein the Bluetooth startup message is used to indicate that the Bluetooth of the second terminal is in the turned-on state; receiving an authentication login request and generating an authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information; The authentication login result is sent to the first terminal, so that the first terminal logs into the target account according to the authentication login result.

4. The method according to claim 3, characterized in that The receiving the login request and generating verification information of the login request includes: Determine, according to the login request, label data for receiving the login request, the label data including at least target account information of the login request, login request time information, and encryption information; The tag data is encoded to obtain encoding information of the tag data, and the encoding information is recorded as verification information of the login request.

5. The method according to claim 4, characterized in that The method of receiving an authentication login request and generating an authentication login result comprises: Decoding the authentication login request to determine the login request time information in the authentication login request; If the login request time information is within the validity period, determining the target account in the authentication login request; Determining whether the first terminal has login authority for the target account; If the first terminal has the login authority of the target account, an authentication login result is generated to request the target account to log in at the first terminal.

6. An account login device, characterized in that: Applied to the first terminal, comprising: A login request generating unit, configured to generate a login request carrying the target account in response to a login operation of the target account; A login request sending unit, used to send the login request to the server, and receive verification information fed back by the server based on the login request; a Bluetooth connection unit, configured to determine, based on the verification information, a second terminal logged in with the target account, send a Bluetooth startup message to the server, so that the server generates a Bluetooth startup request based on the received Bluetooth startup message, and sends the Bluetooth startup request to the second terminal, receive a Bluetooth startup message returned by the second terminal, and display a verification interface of the target account on the first terminal based on the Bluetooth startup message, wherein the Bluetooth startup message is used to indicate that the Bluetooth of the second terminal is in an on state, and establish a connection channel for Bluetooth connection with the second terminal in response to the verification operation of the target account; a first verification information sending unit, configured to send the verification information to a second terminal logged in with the target account based on the connection channel, so that the second terminal generates an authentication login request according to the received verification information, and sends the authentication login request to the server, wherein the authentication login request is an instruction requesting the target account to log in at the first terminal; An authentication login result receiving unit, configured to receive the authentication login result sent by the server, wherein the authentication login result is generated by the server according to the received authentication login request; A login unit is used to log in to the target account according to the authentication login result.

7. An account login device, characterized in that: Applicable to servers, including: A login request receiving unit, configured to receive a login request sent by the first terminal, wherein the login request carries a target account; A verification information generating unit, configured to receive the login request and generate verification information for the login request; a second verification information sending unit, configured to send the verification information to the first terminal, so that the first terminal determines the second terminal logged in with the target account and sends a Bluetooth startup message, generates a Bluetooth startup request according to the received Bluetooth startup message, and sends the Bluetooth startup request to the second terminal, so that the first terminal displays the verification interface of the target account based on the Bluetooth startup message returned by the second terminal, and establishes a connection channel for Bluetooth connection with the second terminal in response to the verification operation of the target account, and sends the verification information to the second terminal logged in with the target account based on the Bluetooth connection channel, wherein the Bluetooth startup message is used to indicate that the Bluetooth of the second terminal is in an on state; An authentication login result generating unit, configured to receive an authentication login request and generate an authentication login result, wherein the authentication login request is generated by the second terminal according to the received verification information; The authentication login result sending unit is used to send the authentication login result to the first terminal, so that the first terminal logs into the target account according to the authentication login result.

8. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores multiple instructions; the processor loads instructions from the memory to execute the steps in the account login method as described in any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, which are suitable for loading by a processor to execute the steps in the account login method described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Account logon method, account logon device and terminal device

    CN105072079A

  • Terminal, server and account login method

    CN106453372A