[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115103361A - Account login method and device, electronic equipment and storage medium - Google Patents

Account login method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115103361A
CN115103361A CN202210725041.1A CN202210725041A CN115103361A CN 115103361 A CN115103361 A CN 115103361A CN 202210725041 A CN202210725041 A CN 202210725041A CN 115103361 A CN115103361 A CN 115103361A
Authority
CN
China
Prior art keywords
terminal
login
login request
authentication
target account
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
Application number
CN202210725041.1A
Other languages
Chinese (zh)
Inventor
李振龙
卢衍佑
许小龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210725041.1A priority Critical patent/CN115103361A/en
Publication of CN115103361A publication Critical patent/CN115103361A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses an account login method, an account login device, electronic equipment and a storage medium; the method and the device for generating the login request can respond to the login operation of the target account and generate the login request carrying the target account; sending a login request to a server, and receiving authentication information fed back by the server based on the login request; responding to the verification operation of the target account, and establishing a connection channel connected with the second terminal through Bluetooth; based on the connection channel, sending verification information to a second terminal logged with a target account number, so that the second terminal generates an authentication login request according to the received verification information and sends the authentication login request to a server; receiving an authentication login result sent by a server; and logging in the target account according to the authentication login result. Therefore, the scheme can simplify the tedious degree of login authentication of the same account at different terminals.

Description

Account login method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to an account login method, an account login device, electronic equipment and a storage medium.
Background
In recent years, many software systems have been developed for use in electronic terminals such as computers, mobile phones, and tablets, so as to facilitate browsing operations by users.
However, when the same account needs to log in different terminals, for example, after logging in at the app end of the mobile phone, and when the user needs to log in at the pc end, the user often needs to input the corresponding account and password at the app end and the pc end, which is a tedious operation process for the user.
Disclosure of Invention
The embodiment of the application provides an account login method, an account login device, electronic equipment and a storage medium, which can simplify the complexity of login authentication of the same account in different terminals.
In a first aspect, an embodiment of the present application provides an account login method, which is applied to a first terminal, and the account login method includes:
responding to the login operation of the target account, and generating a login request carrying the target account;
sending a login request to a server, and receiving authentication information fed back by the server based on the login request;
responding to the verification operation of the target account, and establishing a connection channel connected with the second terminal through Bluetooth;
based on the connection channel, sending verification information to a second terminal logged with a target account number, so that the second terminal generates an authentication login request according to the received verification information and sends the authentication login request to a server, wherein the authentication login request is an instruction for requesting the target account number to log in at a first terminal;
receiving 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;
and logging in the target account according to the authentication login result.
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:
receiving a login request sent by a first terminal, wherein the login request carries a target account;
receiving a login request and generating verification information of the login request;
sending the verification information to a first terminal so that the first terminal responds to the verification operation of the target account number, establishes a connection channel in Bluetooth connection with a second terminal, and sends the verification information to the second terminal logged with the target account number on the basis of the Bluetooth connection channel;
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;
and sending the authentication login result to the first terminal so that the first terminal logs in the target account according to the authentication login result.
In a third aspect, an embodiment of the present application further provides an account login apparatus, including:
the login request generation unit is used for responding to the login operation of the target account and generating a login request carrying the target account;
the login request sending unit is used for sending a login request to the server and receiving verification information fed back by the server based on the login request;
the Bluetooth connection unit is used for responding to the verification operation of the target account number and establishing a connection channel connected with the second terminal through Bluetooth;
the first verification information sending device is used for sending verification information to a second terminal logged with a target account number based on a 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 a server, wherein the authentication login request is an instruction for requesting the target account number to log in at the first terminal;
the authentication login result receiving unit is used for receiving 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;
and the login unit is used for logging in the target account according to the authentication login result.
In a fourth aspect, an embodiment of the present application further provides an account login apparatus, including:
the login request receiving unit is used for receiving a login request sent by a first terminal, wherein the login request carries a target account;
the authentication information generating unit is used for receiving the login request and generating authentication information of the login request;
the second verification information sending unit is used for sending 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 in Bluetooth connection with the second terminal, and sends the verification information to the second terminal logged with the target account on the basis of the Bluetooth connection channel;
the authentication login result generation unit is used for 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;
and the authentication login result sending unit is used for sending the authentication login result to the first terminal so that the first terminal logs in the target account according to the authentication login result.
In a fifth aspect, an embodiment of the present application further provides an electronic device, including a memory storing a plurality of instructions; the processor loads instructions from the memory to execute the steps of any account login method provided by the embodiment of the application.
In a sixth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to perform steps in any account login method provided in the embodiment of the present application.
The method and the device for generating the login request can respond to the login operation of the target account and generate the login request carrying the target account; sending a login request to a server, and receiving authentication information fed back by the server based on the login request; responding to the verification operation of the target account, and establishing a connection channel connected with the second terminal through Bluetooth; based on the connection channel, sending verification information to a second terminal logged with a target account number, so that the second terminal generates an authentication login request according to the received verification information and sends the authentication login request to a server, wherein the authentication login request is an instruction for requesting the target account number to log in at a first terminal; receiving 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; and logging in the target account according to the authentication login result. In the application, the login can be realized by sending the account information of the first terminal to the server, generating verification information by the server according to the account information and feeding the verification information back to the first terminal, sending the verification information to the second terminal by the first terminal, generating an authentication login request by the second terminal according to the verification information and sending the server, and finally receiving an authentication login result sent by the server. Therefore, the user only needs to input the target account number, and the authentication login request is sent to the server by the second terminal in a Bluetooth connection mode, so that the security is guaranteed, meanwhile, a password does not need to be input, the login of the target account number of the first terminal is achieved, and the complexity of login authentication of the same account number in different terminals is further simplified.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a scene schematic diagram of an account login method provided in an embodiment of the present application;
fig. 1b is a schematic flowchart of an account login method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another account login method provided in the embodiment of the present application;
fig. 3 is a schematic diagram of an account login method applied in a server scenario according to an embodiment of the present application;
fig. 4 is a schematic view of a first structure of an account login apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a second account login device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an account login method, an account login device, electronic equipment and a storage medium.
The account registration apparatus may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or the like. The terminal can be a mobile phone, a tablet Computer, an intelligent bluetooth device, a notebook Computer, or a Personal Computer (PC), and the like; the server may be a single server or a server cluster composed of a plurality of servers.
In some embodiments, the account login apparatus may also be integrated in multiple electronic devices, for example, the account login apparatus may be integrated in multiple servers, and the account login method of the present application is implemented by the multiple servers.
In some embodiments, the server may also be implemented in the form of a terminal.
For example, referring to fig. 1a, the electronic device may be a server, and the server in this embodiment is configured to generate a login request carrying a target account in response to a login operation of the target account; sending a login request to a server, and receiving authentication information fed back by the server based on the login request; responding to the verification operation of the target account, and establishing a connection channel connected with the second terminal through Bluetooth; based on the connection channel, sending verification information to a second terminal logged with a target account number, so that the second terminal generates an authentication login request according to the received verification information and sends the authentication login request to a server, wherein the authentication login request is an instruction for requesting the target account number to log in at a 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; and logging in the target account according to the authentication login result.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
In this embodiment, an account login method is provided, as shown in fig. 1b, where the account login method is applied to a first terminal, and a specific flow of the account login method may be as follows:
110. and responding to the login operation of the target account, and generating a login request carrying the target account.
The target account is an account requesting login, and the login operation of the target account is inputting the target account on a login interface of a first terminal, where the first terminal may be an APP (Application) terminal or a PC (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 an interface for inputting an account password on a login mobile phone client, and when the first terminal is a computer, the login interface of the first terminal may refer to an interface for inputting an account password on a login computer client or a webpage.
After the target account is input, a login request carrying the target account can be generated by clicking a login button on a login interface, wherein when the target account is input, the target account based on login operation can be recorded through elements such as a login control under the condition that a user agrees to obtain user permission, and then the login request carrying the target account is generated.
The login request may carry an 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 to a network device using a terminal to login to a target application in the network device.
120. And sending the login request to the server, and receiving authentication information fed back by the server based on the login request.
The server is one of computers, and has high-speed CPU computing capacity, long-time reliable operation, strong I/O external data throughput capacity and better expansibility.
In some embodiments, the first terminal may send the login request to the server through wired transmission or wireless transmission, after receiving the login request, the server processes the login request to obtain authentication information, and finally feeds back the authentication information to the first terminal through wired transmission or wireless transmission, where the authentication information refers to information data obtained in an encrypted or encoded form for the login request, and the authentication information corresponds to the current login request.
130. And responding to the verification operation of the target account, and establishing a connection channel connected with the second terminal through Bluetooth.
After the verification information is determined, the verification operation can be performed manually or automatically. For example, in some embodiments, after receiving the verification information, a "verification" button may be displayed on a login interface of the first terminal, and the user may establish a connection channel connected to the second terminal through bluetooth by clicking the "verification" button. The second terminal may be a PC (Personal Computer) terminal or an APP (mobile phone software, Application), wherein in this embodiment of the Application, the second terminal is a terminal logged with a target account, when the second terminal is the PC (Personal Computer, Application), the first terminal may be the APP (mobile phone software, Application), and when the second terminal is the APP (mobile phone software, Application), the first terminal may be the PC (Personal Computer, Application).
Establishing the connection channel in bluetooth connection with the second terminal means that the first terminal and the second terminal perform bluetooth connection.
In this embodiment of the present application, before establishing a connection channel connected to the second terminal by bluetooth in response to a verification operation of a target account, the method further includes:
determining a second terminal logged with a target account according to the verification information;
sending a Bluetooth starting message to the server, so that the server generates a Bluetooth starting request according to the received Bluetooth starting message and sends the Bluetooth starting request to the second terminal;
and receiving a Bluetooth opening message returned by the second terminal, and displaying a verification interface of the target account on the first terminal based on the Bluetooth opening message, wherein the Bluetooth opening message is used for representing that the Bluetooth of the second terminal is in an opening state.
The authentication information may store information of a second terminal that logs in the target account. The first terminal may obtain information of the second terminal in the authentication information, where the information of the second terminal may be information of the second terminal device, and the information may include model information of the device, a mac Address (Media Access Control Address ), and the like.
The Bluetooth starting message is a request for requesting to start the Bluetooth of the second terminal, the request can be sent to the server in a wired connection or wireless connection mode, the server determines the second terminal according to the Bluetooth starting message after receiving the Bluetooth starting message, and then the Bluetooth starting request is sent to the second terminal, so that the Bluetooth of the second terminal is started.
After the second terminal starts the bluetooth, the second terminal may send a bluetooth start message to the first terminal, thereby indicating that the bluetooth of the second terminal is already started, wherein the second terminal may send the bluetooth start message to the first terminal in a wireless network equivalent manner.
After receiving the bluetooth open message, the first terminal displays a verification interface of the target account, where the verification interface of the target account is used for the user to determine whether to start verification. After the user clicks the 'verification' button, the first terminal in the bluetooth enabled state may perform bluetooth connection with the second terminal in the bluetooth enabled state.
In this embodiment of the present application, receiving a bluetooth activation message returned by the second terminal, and displaying a verification interface of the target account on the first terminal based on the bluetooth activation message includes:
determining the position distance relationship between the second terminal and the first terminal based on the Bluetooth starting message;
and when the position distance relationship between the second terminal and the first terminal meets the preset position distance requirement, displaying a verification interface of the target account on the first terminal.
The position-distance relationship refers to a distance between the second terminal and the first terminal, and the preset position-distance requirement may refer to that the distance between the second terminal and the first terminal is smaller than a preset threshold, for example, in the embodiment of the present application, the preset position 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 position distance relation between the second terminal and the first terminal meets the preset position distance requirement, and displaying a verification interface of the target account number on the first terminal, and when the actual distance between the second terminal and the first terminal is 6m, the position distance relationship between the second terminal and the first terminal does not meet the preset position distance requirement, the first terminal can prompt the user whether to determine that the second terminal is the target second terminal or not, and if yes, a verification interface of the target account is displayed on the first terminal.
140. And based on the connection channel, sending verification information to a second terminal logged with the target account number, 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 for requesting the target account number to log in the first terminal.
The connection channel refers to a first terminal and a second terminal which are connected through Bluetooth, and the first terminal can send the verification information to the second terminal based on the connection channel established by the Bluetooth connection. The connection channel can comprise a low-speed Bluetooth channel and a high-speed Bluetooth channel, and when the connection channel is selected, the connection channel can be selected according to the requirement of transmitting verification information.
The authentication login request refers to a request for logging in a target account at a first terminal, and the authentication login request may be generated by a second terminal according to verification information sent by the first terminal, and is used for requesting a server to allow the first terminal to log in an instruction of the target account.
150. And receiving 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.
After receiving the authentication login request, the server generates an authentication login result based on the authentication login request, wherein the generating of the authentication login result based on the authentication login request comprises:
determining verification information in the authentication login request, and analyzing the verification information in the authentication login request so as to determine the request time of the login request in the authentication login request and a target account number in the authentication login request; and judging whether the request time of the login request is within the valid period, if so, determining whether the first terminal has the login authority of the target account according to the login information in the server, and if so, generating an authentication login result for the first terminal to login the target account.
160. And logging in the target account according to the authentication login result.
After receiving the authentication login result, the first terminal may perform automatic login of the target account, where in some embodiments, the first terminal may receive a password corresponding to the target account and stored in the server, so as to implement automatic input and login of the password of the target account, and may also receive session control information generated by the server for the target account to perform login of the target account.
According to the method provided by the embodiment of the application, the login operation of the target account can be responded, and the login request carrying the target account is generated; sending a login request to a server, and receiving authentication information fed back by the server based on the login request; responding to the verification operation of the target account, and establishing a connection channel connected with the second terminal through Bluetooth; based on the connection channel, sending verification information to a second terminal logged with a target account number, so that the second terminal generates an authentication login request according to the received verification information and sends the authentication login request to a server, wherein the authentication login request is an instruction for requesting the target account number to log in at a first terminal; receiving 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; and logging in the target account according to the authentication login result. Therefore, the user can input the target account number only by the scheme, the authentication login request is sent to the server by the second terminal in a Bluetooth connection mode, the security is guaranteed, meanwhile, the password does not need to be input, the login of the target account number of the first terminal is achieved, and the complexity of login authentication of the same account number at different terminals is further reduced.
Fig. 2 is a flowchart of another account login method provided in the embodiment of the present application, and as shown in fig. 2, the account login method is applied to a server, and a specific process of the account login method may be as follows:
210. and receiving a login request sent by a first terminal, wherein the login request carries a target account.
The login request may carry an 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 to a network device using a terminal to login to a target application in the network device.
The server can receive the login request sent by the first terminal in a wireless network connection mode.
220. And receiving the login request and generating verification information of the login request.
After receiving the login request, the server generates authentication information based on the login request. The method for generating the verification information of the login request comprises the following steps:
determining label data for receiving a login request according to the login request, wherein the label data at least comprises target account information, login request time information and encryption information of the login request;
and coding the label data to obtain the coding information of the label data, and recording the coding information as the verification information of the login request.
The tag data may be a tag with target account information, login request time information, and encryption information generated according to the login request. For example, in some embodiments, the tag data may be ticket.
The encoding process refers to a hash string formed by encrypting the tag data, and for example, in the embodiment of the present application, when the tag data is a ticket, the ticket may be encoded to obtain a hash (hash) string.
230. And sending 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 in Bluetooth connection with the second terminal, and sends the verification information to the second terminal logged with the target account based on the Bluetooth connection channel.
The server sends the verification information to the first terminal, the first terminal determines a second terminal logged with a target account number through the verification information after receiving the verification information, and then sends a Bluetooth starting message to the server, so that the server generates a Bluetooth starting request according to the received Bluetooth starting message and sends the Bluetooth starting request to the second terminal; and receiving a Bluetooth opening message returned by the second terminal, and displaying the verification interface of the target account on the first terminal based on the Bluetooth opening message. And carrying out verification operation on the verification interface, so that the first terminal and the second terminal are connected by Bluetooth, and the first terminal sends verification information to the second terminal through the connection channel.
240. And 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.
And after receiving the authentication login request, the server performs authentication processing on the authentication information in the authentication login request so as to obtain an authentication login result.
In an embodiment of the present application, a method for receiving an authentication login request and generating an authentication login result includes:
decoding the authentication login request, and determining login request time information in the authentication login request;
if the login request time information is within the validity period, determining to authenticate the target account in the login request;
judging whether the first terminal has the login authority of the target account;
and if the first terminal has the login authority of the target account, generating an authentication login result for requesting the target account to login in the first terminal.
After the server acquires the authentication login request, the server needs to decode the verification information obtained by encoding the authentication login request, so as to obtain the target account information and the login request time information in the verification information. Wherein, in some embodiments, the decoding process may be decoding according to the encoded hash function rule.
After acquiring the target account information and the login request time information, the server first determines whether the time in the login request time information is within a validity period, where the validity period is the time when the login request is in a valid state, for example, in some embodiments, when the time in the login request time information is 19: 30 minutes and the validity period is 5 minutes, the latest time when the authentication login request is received is 19: 35 minutes, and if the time when the authentication login request is received is 19: 34 minutes, the authentication login request is a valid authentication login request, and then subsequent authentication can be performed. If the time for receiving the authentication login request is 19: 40 minutes, and the time for receiving the authentication login request exceeds the time specified by the validity period, the authentication login request is an invalid authentication login request, and the target account of the first terminal cannot be logged in.
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, wherein when determining that the first terminal has the login authority of the target account, the server may determine according to an authority list pre-stored in the server, or may determine according to whether target account information of the first terminal and target account information of the second terminal are consistent. And if the first terminal has the login authority of the target account, the server generates an authentication login result for requesting the target account to login in the first terminal.
250. And sending the authentication login result to the first terminal so that the first terminal logs in the target account according to the authentication login result.
In some embodiments, the server may send a password corresponding to a pre-stored target account to the first terminal, so as to implement automatic input and login of the password, and may also generate session control information of the target account, so as to enable the first terminal to directly log in. The method provided by the embodiment of the application can receive a login request sent by a first terminal, wherein the login request carries a target account; receiving a login request and generating verification information of the login request; sending the verification information to a first terminal so that the first terminal responds to the verification operation of the target account number, establishes a connection channel in Bluetooth connection with a second terminal, and sends the verification information to the second terminal logged with the target account number on the basis of the Bluetooth connection channel; 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; and sending the authentication login result to the first terminal so that the first terminal logs in the target account according to the authentication login result. Therefore, the user can only input the target account number, the authentication login request is sent to the server by the second terminal in a Bluetooth connection mode, the security is guaranteed, meanwhile, the password does not need to be input, the login of the target account number of the first terminal is achieved, and the complexity of login authentication of the same account number at different terminals is further reduced.
The method described in the above embodiments is further described in detail below.
In this embodiment, the method in the embodiment of the present application will be described in detail by taking account login as an example.
As shown in fig. 3, a specific flow of an account login method is as follows:
301. responding to a login operation of a login interface of a PC terminal browser, and generating a login request carrying a target account;
302. the PC terminal sends the login request to the server, and the server generates a ticket based on the login request after receiving the login request, wherein the ticket at least comprises a target account, a time factor and a server public key corresponding to the target account.
Wherein, the time factor is the time of sending the login request.
303. And the server encodes the ticket to obtain a hash string corresponding to the ticket.
Wherein the hash string includes a validity period for determining whether the hash string is valid.
304. The server stores the hash string and sends the hash string to the PC terminal;
305. after the PC terminal receives the hash string, generating a verification button on a login interface of the PC terminal;
306. responding to the click operation of the verification button, and sending the hash string to the APP terminal logged with the target account by the PC terminal in a Bluetooth connection mode;
307. the APP terminal logged in the target account generates an authentication login request based on the received hash string, and sends the authentication login request to the server;
308. after receiving the authentication login request, the server decodes the authentication login request to obtain ticket;
309. the server judges whether the time factor in the ticket is within the validity period, if so, judges whether the target account number in the ticket is within the authority range, and if so, generates a result of passing the authentication.
The time factor is the time of the login request, the validity period is the valid time added by the server when the server codes the hash string, and the ticket is determined to be in the validity period or not by comparing the decoding time with the time of the login request and the time of the validity period.
310. And the server sends the result of passing the authentication to the PC terminal, and the PC terminal logs in the target account according to the result of passing the authentication.
After the server sends the result of passing the authentication to the PC end, the server sends the ticket to the PC end, and generates session information of the login account under the ticket, so that the browser at the PC end logs in successfully.
Therefore, the user only inputs the target account number, the hash string is sent to the server by the second terminal in a Bluetooth connection mode, the security is guaranteed, meanwhile, the password does not need to be input, the target account number can be logged in through the PC side browser, and the complexity of login authentication of the same account number at different terminals is further simplified.
In order to better implement the method, an embodiment of the present application further provides an account login apparatus, where the account login apparatus may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers.
For example, in this embodiment, an account login apparatus is specifically integrated in an electronic device as an example, and the method in this embodiment of the present application is described in detail.
For example, as shown in fig. 4, the account registration means may include:
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;
a login request sending unit 402, configured to send a login request to a server, and receive authentication information fed back by the server based on the login request;
a bluetooth connection unit 403, configured to establish a connection channel in bluetooth connection with the second terminal in response to the verification operation of the target account;
a first verification information sending unit 404, configured to send verification information to a second terminal logged with a target account based on a 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 a server, where the authentication login request is an instruction for requesting the target account to log in at a first terminal;
an authentication login result receiving unit 405, configured to receive an authentication login result sent by the server, where the authentication login result is generated by the server according to the received authentication login request;
a login unit 406, configured to log in the target account according to the authentication login result.
In this embodiment, the bluetooth connection unit 403 is further specifically configured to:
and determining the second terminal logged with the target account according to the verification information.
In this embodiment of the application, the bluetooth connection unit 403 is further specifically configured to:
sending a Bluetooth starting message to the server, so that the server generates a Bluetooth starting request according to the received Bluetooth starting message and sends the Bluetooth starting request to the second terminal;
and receiving a Bluetooth opening message returned by the second terminal, and displaying a verification interface of the target account on the first terminal based on the Bluetooth opening message, wherein the Bluetooth opening message is used for representing that the Bluetooth of the second terminal is in an opening state.
In this embodiment of the application, the bluetooth connection unit 403 is further specifically configured to:
determining the position distance relationship between the second terminal and the first terminal based on the Bluetooth starting message;
and when the position distance relationship between the second terminal and the first terminal meets the preset position distance requirement, displaying a verification interface of the target account on the first terminal.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the account login apparatus of this embodiment includes a login request generating unit 401, configured to respond to a login operation of a target account, and generate a login request carrying the target account; a login request sending unit 402, configured to send a login request to a server, and receive authentication information fed back by the server based on the login request; the bluetooth connection unit 403 is configured to establish a connection channel in bluetooth connection with the second terminal in response to the verification operation of the target account; the first verification information sending unit 404 is configured 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, where the authentication login request is an instruction for requesting the target account to log in at the first terminal; an authentication login result receiving unit 405, configured to receive an authentication login result sent by the server, where the authentication login result is generated by the server according to the received authentication login request; the login unit 406 is used to log in the target account according to the authentication login result. Therefore, the user only needs to input the target account number, and the authentication login request is sent to the server by the second terminal in a Bluetooth connection mode, so that the security is guaranteed, meanwhile, a password does not need to be input, the login of the target account number of the first terminal is achieved, and the complexity of login authentication of the same account number in different terminals is further simplified.
For example, as shown in fig. 5, the account registration apparatus may further include:
a login request receiving unit 501, configured to receive a login request sent by a first terminal, where the login request carries a target account;
an authentication information generating unit 502, configured to receive a login request and generate authentication information of the login request;
a second verification information sending unit 503, configured to send verification information to the first terminal, so that the first terminal establishes a connection channel in bluetooth connection with the second terminal in response to a verification operation of the target account, and sends the verification information to the second terminal logged with the target account based on the bluetooth connection channel;
an authentication login result generation unit 504, configured to receive an authentication login request and generate an authentication login result, where the authentication login request is generated by the second terminal according to the received verification information;
an authentication login result sending unit 505 is configured to send an authentication login result to the first terminal, so that the first terminal logs in the target account according to the authentication login result.
In this embodiment of the application, the verification information generating unit 502 is further specifically configured to:
determining label data for receiving a login request according to the login request, wherein the label data at least comprises target account information, login request time information and encryption information of the login request;
and coding the tag data to obtain the coding information of the tag data, and recording the coding information as the verification information of the login request.
In this embodiment of the application, the authentication login result generating unit 504 is further specifically configured to:
decoding the authentication login request, and determining login request time information in the authentication login request;
if the login request time information is within the validity period, determining to authenticate the target account in the login request;
judging whether the first terminal has the login authority of the target account;
and if the first terminal has the login authority of the target account, generating an authentication login result for requesting the target account to log in the first terminal.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the account login apparatus of this embodiment includes a login request receiving unit 501, configured to receive a login request sent by a first terminal, where the login request carries a target account; the authentication information generating unit 502 is configured to receive the login request and generate authentication information of the login request; the second verification information sending unit 503 is configured to send the verification information to the first terminal, so that the first terminal establishes a 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 with the target account based on the bluetooth connection; the authentication login result generating unit 504 is configured to receive an authentication login request and generate an authentication login result, where the authentication login request is generated by the second terminal according to the received verification information; the authentication login result sending unit 505 is configured 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. Therefore, the user only needs to input the target account number, and the authentication login request is sent to the server by the second terminal in a Bluetooth connection mode, so that the security is guaranteed, meanwhile, a password does not need to be input, the login of the target account number of the first terminal is achieved, and the complexity of login authentication of the same account number in different terminals is further simplified.
The embodiment of the application also provides the electronic equipment which can be equipment such as a terminal and a server. The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer and the like; the server may be a single server, a server cluster composed of a plurality of servers, or the like.
In some embodiments, the account login apparatus may also be integrated in a plurality of electronic devices, for example, the account login apparatus may be integrated in a plurality of servers, and the plurality of servers implement the account login method of the present application.
In this embodiment, a detailed description will be given by taking the electronic device of this embodiment as an example of a terminal, for example, as shown in fig. 6, which shows a schematic structural diagram of the terminal according to the embodiment of the present application, specifically:
the terminal can include components such as a processor 601 of one or more processing cores, memory 602 of one or more computer-readable storage media, a power supply 603, an input module 604, and a communication module 605. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 601 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 602 and calling data stored in the memory 602. In some embodiments, processor 601 may include one or more processing cores; in some embodiments, processor 601 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 601.
The memory 602 may be used to store software programs and modules, and the processor 601 executes various functional applications and data processing by operating 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 program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 access to the memory 602.
The terminal also includes a power supply 603 for providing power to the various components, and in some embodiments, the power supply 603 may be logically coupled to the processor 601 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system. The power supply 603 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal may also include an input module 604, the input module 604 being operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The terminal may also include a communication module 605, and in some embodiments the communication module 605 may include a wireless module, through which the terminal may wirelessly transmit over short distances to provide wireless broadband internet access to the user. For example, the communication module 605 may be used to assist a user in emailing, browsing web pages, accessing streaming media, and the like.
Although not shown, the terminal may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 601 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 601 runs the application programs stored in the memory 602, thereby implementing various functions.
In some embodiments, a computer program product is also proposed, which comprises a computer program or instructions that when executed by a processor implement the steps of any one of the above account login methods.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, where multiple instructions are stored, and the instructions can be loaded by a processor to perform steps in any account login method provided in the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and the processor executes the computer instructions.
Since the instructions stored in the storage medium may execute the steps in any account login method provided in the embodiments of the present application, beneficial effects that can be achieved by any account login method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The account login method, the account login device, the electronic device and the storage medium provided by the embodiment of the application are described in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An account login method is applied to a first terminal, and comprises the following steps:
responding to the login operation of a target account, and 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;
responding to the verification operation of the target account, and establishing a connection channel connected with a second terminal through Bluetooth;
based on the connection channel, sending the verification information 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 for requesting the target account to log in at the first terminal;
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;
and logging in the target account according to the authentication login result.
2. The method according to claim 1, wherein before the establishing of the connection channel with the bluetooth connection of the second terminal in response to the verification operation of the target account, the method further comprises:
and determining the second terminal logged with the target account according to the verification information.
3. The method according to claim 2, wherein after determining that the second terminal has logged in the target account according to the authentication information, the method further comprises:
sending a Bluetooth starting message to the server, so that the server generates a Bluetooth starting request according to the received Bluetooth starting message and sends the Bluetooth starting request to the second terminal;
and receiving a Bluetooth starting message returned by the second terminal, and displaying a verification interface of the target account on the first terminal based on the Bluetooth starting message, wherein the Bluetooth starting message is used for representing that the Bluetooth of the second terminal is in a starting state.
4. The method according to claim 3, wherein the receiving a Bluetooth start message returned by the second terminal, and displaying a verification interface of the target account on the first terminal based on the Bluetooth start message comprises:
determining a position distance relationship between the second terminal and the first terminal based on the Bluetooth starting message;
and when the position distance relationship between the second terminal and the first terminal meets the preset position distance requirement, displaying a verification interface of the target account on the first terminal.
5. An account login method is applied to a server, and the login authentication method comprises the following steps:
receiving a login request sent by a 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 responds to the verification operation of the target account number, establishes a connection channel in Bluetooth connection with a second terminal, and sends the verification information to the second terminal logged with the target account number on the basis of the Bluetooth connection channel;
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;
and sending the authentication login result to the first terminal so that the first terminal logs in the target account according to the authentication login result.
6. The method of claim 5, wherein the receiving the login request and generating authentication information for the login request comprises:
according to the login request, determining to receive tag data of the login request, wherein the tag data at least comprises target account information, login request time information and encryption information of the login request;
and coding the tag data to obtain coding information of the tag data, and recording the coding information as verification information of the login request.
7. The method of claim 6, wherein receiving an authentication login request, and wherein generating an authentication login result comprises:
decoding the authentication login request, and determining login request time information in the authentication login request;
if the login request time information is within the validity period, determining a target account in the authentication login request;
judging whether the first terminal has the login authority of the target account;
and if the first terminal has the login authority of the target account, generating an authentication login result for requesting the target account to log in the first terminal.
8. An account login apparatus, comprising:
the system comprises a login request generating unit, a login request processing unit and a login processing unit, wherein the login request generating unit is used for responding to login operation of a target account and generating a login request carrying the target account;
the login request sending unit is used for sending the login request to a server and receiving verification information fed back by the server based on the login request;
the Bluetooth connection unit is used for responding to the verification operation of the target account number and establishing a connection channel connected with the second terminal through Bluetooth;
a first verification information sending unit, configured to send the verification information to a second terminal that logs in 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, where the authentication login request is an instruction for requesting the target account to log in at the first terminal;
the authentication login result receiving unit is used for 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;
and the login unit is used for logging in the target account according to the authentication login result.
9. An account login apparatus, comprising:
a login request receiving unit, configured to receive a login request sent by a first terminal, where the login request carries a target account;
the verification information generating unit is used for receiving the login request and generating verification information of the login request;
a second verification information sending unit, configured to send the verification information to the first terminal, so that the first terminal establishes a connection channel in bluetooth connection with a second terminal in response to a verification operation of the target account, and sends the verification information to the second terminal logged with the target account based on the bluetooth connection channel;
the authentication login result generation unit is used for 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;
and the authentication login result sending unit is used for sending the authentication login result to the first terminal so that the first terminal logs in the target account according to the authentication login result.
10. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps of the account login method according to any one of claims 1 to 7.
11. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the account login method according to any one of claims 1 to 7.
CN202210725041.1A 2022-06-23 2022-06-23 Account login method and device, electronic equipment and storage medium Pending CN115103361A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210725041.1A CN115103361A (en) 2022-06-23 2022-06-23 Account login method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210725041.1A CN115103361A (en) 2022-06-23 2022-06-23 Account login method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115103361A true CN115103361A (en) 2022-09-23

Family

ID=83293577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210725041.1A Pending CN115103361A (en) 2022-06-23 2022-06-23 Account login method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115103361A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622789A (en) * 2022-10-25 2023-01-17 平安银行股份有限公司 Login control method, device, electronic device, and computer-readable storage medium
CN115622786A (en) * 2022-10-24 2023-01-17 平安银行股份有限公司 Account login method, device, electronic device and storage medium
CN115632864A (en) * 2022-10-24 2023-01-20 平安银行股份有限公司 A login authentication method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248489A (en) * 2013-05-17 2013-08-14 刘琦 Method for realizing client login through intelligent terminal, server and intelligent terminal
CN103379119A (en) * 2012-04-26 2013-10-30 任少华 Network multi-authentication system or network multi-authentication method
CN103533392A (en) * 2013-10-25 2014-01-22 乐视网信息技术(北京)股份有限公司 Method, electronic device and system for logging in account
CN105072079A (en) * 2015-06-30 2015-11-18 小米科技有限责任公司 Account logon method, account logon device and terminal device
US20160255078A1 (en) * 2014-01-24 2016-09-01 Tencent Technology (Shenzhen) Company Limited Method and system for verifying an account operation
CN106453372A (en) * 2016-11-03 2017-02-22 努比亚技术有限公司 Terminal, server and account login method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379119A (en) * 2012-04-26 2013-10-30 任少华 Network multi-authentication system or network multi-authentication method
CN103248489A (en) * 2013-05-17 2013-08-14 刘琦 Method for realizing client login through intelligent terminal, server and intelligent terminal
CN103533392A (en) * 2013-10-25 2014-01-22 乐视网信息技术(北京)股份有限公司 Method, electronic device and system for logging in account
US20160255078A1 (en) * 2014-01-24 2016-09-01 Tencent Technology (Shenzhen) Company Limited Method and system for verifying an account operation
CN105072079A (en) * 2015-06-30 2015-11-18 小米科技有限责任公司 Account logon method, account logon device and terminal device
CN106453372A (en) * 2016-11-03 2017-02-22 努比亚技术有限公司 Terminal, server and account login method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622786A (en) * 2022-10-24 2023-01-17 平安银行股份有限公司 Account login method, device, electronic device and storage medium
CN115632864A (en) * 2022-10-24 2023-01-20 平安银行股份有限公司 A login authentication method, device, equipment and storage medium
CN115622789A (en) * 2022-10-25 2023-01-17 平安银行股份有限公司 Login control method, device, electronic device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
KR102511811B1 (en) Techniques for securely authenticating bot users
CN111064757B (en) Application access method and device, electronic equipment and storage medium
CN115103361A (en) Account login method and device, electronic equipment and storage medium
WO2019042274A1 (en) Resource transfer method and apparatus, and storage medium
US20090031405A1 (en) Authentication system and authentication method
CN112199652B (en) Login method, terminal, server, system, medium and equipment of application program
BR112012003248B1 (en) method and server for instant messaging
CN114139135B (en) Equipment login management method, device and storage medium
WO2022227311A1 (en) Access processing method for performing remote control on terminal, and device and storage medium
CN112380552A (en) Data processing method and device, storage medium and computer equipment
CN109800557B (en) Block chain-based integrated processing method, device, server, equipment and medium
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN115174161B (en) Account login method and device, electronic equipment and storage medium
WO2014026542A1 (en) Implementation method, system and device for instant communication application
CN114826724B (en) Data processing method, device, electronic equipment and storage medium
WO2023197642A1 (en) Identity verification method, device, storage medium, and program product
CN117412167A (en) Video transmission method, video transmission device, electronic equipment and computer storage medium
CN114386010A (en) Application login method and device, electronic equipment and storage medium
CN115622791A (en) Account management method and device
CN110856173A (en) Network access method, device and electronic device
JP6378727B2 (en) Message transmission method, message transmission program, and message transmission apparatus
JP7575561B1 (en) Server, method, and program
CN114024688B (en) Network request method, network authentication method, terminal equipment and server
CN113742699A (en) Login method, login device, electronic equipment and computer-readable storage medium
CN115865505A (en) Terminal access method, device and readable storage medium

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