Login method, electronic device and system

Through the assistance of the first electronic device and the second electronic device of the logged-in application, using the shared database and password-free login service, the password-free login credentials are obtained, which solves the problem of users repeatedly entering an account number, password or scanning a QR code on different devices, and improves the user experience.

CN120455022APending Publication Date: 2025-08-08HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410174455.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-06
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

When a user logs into the same application on different electronic devices, he needs to repeatedly enter his account number, password or scan the login QR code, which is complicated and has poor user experience.

Method used

Through the assistance of the first electronic device and the second electronic device that has been logged into the application, the shared database and password-free login service are used to obtain password-free login credentials and simplify the login process.

Benefits of technology

There is no need to enter an account, password or scan the QR code, which simplifies user operation steps and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120455022A_ABST
    Figure CN120455022A_ABST
Patent Text Reader

Abstract

The invention provides a login method, electronic equipment and a system, and relates to the technical field of terminals. According to the electronic equipment, under the assistance of the second electronic equipment which currently logs in the first application, the first application can be logged in without password input and other complex operations, the user operation steps are simplified, and the user experience is improved. The method comprises: an electronic device receiving a first operation of a user indicating to log in a first application, and sending a first request to a second electronic device, the first request being used for requesting to obtain a certificate of a first account currently logged in by the first application logging in the second electronic device in a password-free manner; and the electronic equipment receives a first response sent by the second electronic equipment, wherein the first response carries the password-free login certificate. And the electronic equipment sends a second request to the server, wherein the second request carries the password-free login certificate. An electronic device receives a service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a login method, electronic device, and system. Background Art

[0002] With the development of terminal technology, many applications can be adapted to various types of electronic devices. Users often need to log in to the same application on multiple devices.

[0003] In some scenarios, when a user logs in to an app on an electronic device that is not logged in to the app, they need to enter their account and password or have another electronic device scan the login QR code to log in. When a user logs in to the same account on a different electronic device, they need to repeatedly enter their account and password or scan the login QR code. They may even need to communicate to confirm their account and password or have another user assist in scanning the login QR code before logging in. This operation is relatively complicated and the user experience is poor. Summary of the Invention

[0004] To address the aforementioned technical issues, embodiments of the present application provide a login method, electronic device, and system. Through the technical solutions provided by embodiments of the present application, a first electronic device, with the assistance of a second electronic device currently logged into the first application, can log into the first application without requiring a password, without requiring complex operations such as entering an account number and password or scanning a login QR code. This simplifies user operation steps and enhances the user experience.

[0005] In order to achieve the above technical objectives, this application provides the following technical solutions:

[0006] In a first aspect, a login method is provided, which is applied to a first electronic device, including: receiving a first operation indicated by a user to log in to a first application, sending a first request to a second electronic device, the first request being used to request to obtain credentials of a first account currently logged in by the first application of the second electronic device for password-free login; receiving a first response sent by the second electronic device, the first response carrying the password-free login credentials; sending a second request to a server, the second request carrying the password-free login credentials; receiving a second response sent by the server, the second response being used to indicate that the first application of the first electronic device has logged in to the first account.

[0007] In some examples, the first operation may be an operation in which a user launches a first application on a first electronic device. Alternatively, the first operation may be an operation in which a user instructs the first application to display a login interface. If the second electronic device is currently logged in to the first account of the first application, the first electronic device may obtain, from the second electronic device, the password-free login credentials for the first account used to log in to the first application without a password, using the above method.

[0008] In this way, the first electronic device can request a password-free login from the server for the first account of the first application based on the password-free login credentials provided by the second electronic device of the first account currently logged in to the first application, eliminating the need for complicated operations such as entering an account number and password or scanning a login QR code. This simplifies user operation steps and improves the user experience.

[0009] According to the first aspect, in response to a first operation indicated by a user to log in to a first application, a first request is sent to a second electronic device, including: receiving the first operation, querying first information of the first application of at least one device corresponding to a preset network address, the at least one device including a second electronic device; obtaining a first account based on the first information, the first information being used to indicate a logged-in account of the first application; and sending a first request to the second electronic device corresponding to the first account.

[0010] In some examples, the first information is used to indicate the logged-in account of the first application and also to indicate that the first application has enabled the password-free login service. For example, the first information of the first application may include the first account of the second electronic device currently logged into the first application and that the password-free login service has been enabled on the second electronic device. In some examples, the first request carries the first account.

[0011] In some examples, the first electronic device queries the first information of the first application of at least one device corresponding to a preset network address, including the first electronic device searching whether there are other electronic devices (at least one device) within the preset network address (such as within the local area network where the first electronic device is located), and whether the other electronic devices are allowed to assist the first electronic device in logging into the first application without a password (such as whether the first information of the first application of the other electronic devices can be queried).

[0012] In some examples, the preset network address includes an Internet Protocol IP address and a port address of a password-free login service. The IP address is an address included in the local area network to which the first electronic device is connected. The port address of the password-free login service is based on the port address of the password-free login service of the first application. In some examples, the password-free login service is used to assist applications in other electronic devices that are not logged in to perform password-free login, thereby reducing the user's ordinary login operations during the login process. If there is an electronic device in the local area network that has logged in to the first account of the first application, and the electronic device can assist other electronic devices in logging into the first application without a password. The first electronic device can find the electronic device that can provide the password-free login service based on the combination of the IP address and the port address of the password-free login service.

[0013] In this way, the first electronic device can query the first information of the first application of at least one device corresponding to the preset network address, and request assistance from the electronic device currently logged in with the first account of the first application to log in to the first account of the first application without a password.

[0014] According to the first aspect, or any implementation of the first aspect above, in response to a first operation indicated by a user to log in to a first application, a first request is sent to a second electronic device, including: receiving the first operation, querying the first information of the first application recorded in a shared database corresponding to the first application, the shared database being used to record the synchronization data of the first application between different devices; obtaining the first account based on the first information, the first information being used to indicate the logged-in account of the first application; adding the first request in the shared database, the first request including the identifier of the first electronic device and the first account.

[0015] In some examples, the first information is used to indicate the current logged-in status of the first application of the second electronic device, whether the password-free login service based on the first application is turned on, and the first account of the second electronic device to log in to the first application.

[0016] In some examples, the shared database is a component of a data management system in an electronic device. Each application in the electronic device has its own shared database, and the shared databases of different applications have their own tables and files. The data management system of the electronic device provides the electronic device with data storage, data management, and cross-device data synchronization capabilities. Based on the above capabilities provided by the data management system, the electronic device can synchronize data updates in the shared database of a certain application to the shared database of the same application of other electronic devices in a networking environment. That is, the shared databases of the same application of different electronic devices can synchronize, modify, and query data related to password-free login.

[0017] In some examples, the second electronic device writes first information used to assist other electronic devices in password-free logging into the first account of the first application into the password-free database. Based on the data synchronization capability provided by the shared database, the first electronic device can obtain the first information and request the second electronic device to assist in password-free logging into the first account of the first application.

[0018] In this way, the second electronic device can assist the first electronic device in logging into the first application without a password based on the data synchronization capability provided by the shared database.

[0019] According to the first aspect, or any implementation of the first aspect above, obtaining a first account based on the first information includes: displaying multiple accounts when the logged-in accounts indicated by the first information include multiple accounts; obtaining a first account selected by the user from the multiple accounts based on the user's second operation; or confirming the first account when the logged-in accounts indicated by the first information only include the first account.

[0020] In this way, the first electronic device adapts different technical solutions for users to choose accounts for logging into the first application without a password based on the number of accounts that can be obtained to log into the first application without a password, thereby optimizing user operations and improving user interaction experience.

[0021] According to the first aspect, or any implementation method of the first aspect above, the second request also carries second password-free login verification information, and the second password-free login verification information includes the identification of the first electronic device, the identification of the second electronic device, and the first account; the second password-free login verification information is used to verify the validity of the password-free login credentials.

[0022] In some examples, the second request sent by the first electronic device to the server carries second password-free login verification information. After the server receives the second request sent by the first electronic device, it can compare the second password-free login verification information with the first password-free login verification information generated when the server side issues the password-free login credentials to verify the validity of the password-free login credentials in the second request.

[0023] In this way, the second request sent by the first electronic device to the server carries the second password-free login verification information, which can improve the security of the password-free login.

[0024] In a second aspect, a login device is provided, which is applied to a second electronic device, including: receiving a first request sent by a first electronic device; obtaining a first account for logging into a first application of the current second electronic device in response to the first request; sending a third request to a server, the third request carrying the first account, the third request being used to request credentials for password-free login to the first account; receiving the password-free login credentials sent by the server; sending a first response to the first electronic device, the first response carrying the password-free login credentials, the password-free login credentials being used for password-free login to the first account by the first application of the first electronic device.

[0025] In some examples, the password-free login service for the first application of the second electronic device is enabled. When the password-free login service of the second electronic device is enabled, the second electronic device, in response to the first request of the first electronic device for password-free login to the first application, obtains the password-free login credentials of the user for the first electronic device to log in to the first application without password, thereby assisting the first electronic device in logging in to the first application without password.

[0026] In this way, when the first electronic device subsequently requests the server to log in to the first application, the password-free login credential can be used as a credential without having to enter a password or perform other operations.

[0027] According to the second aspect, or any implementation method of the above second aspect, before receiving the first request sent by the first electronic device, it also includes: in response to the user operation, logging into the first account of the first application; adding first information in the shared database corresponding to the first application, the first information is used to indicate the logged-in status of the first application, whether the password-free login service is turned on, the first account, the identification of the first electronic device, and the identification of the second electronic device.

[0028] According to the second aspect, or any implementation method of the above second aspect, a first response is sent to the first electronic device, and the first response carries the password-free login credentials, including: adding the first response to the shared database, the first response including the password-free login credentials, the first account, the identification of the first electronic device, and the identification of the second electronic device.

[0029] In this way, after the second electronic device starts the password-free login service, it adds the first information to the shared database, so that other electronic devices that need assistance in logging into the first application can obtain the first information from the shared database and then log into the first application without password with the assistance of the second electronic device.

[0030] According to the second aspect, or any implementation of the above second aspect, before sending the third request to the server, it also includes: confirming that the first electronic device is a trusted device, and the trusted device includes a device that logs in to the same system account as the second electronic device, or a device that is in the same trusted group as the second electronic device.

[0031] In this way, the second electronic device assists the first electronic device in logging into the first application without a password after confirming that the first electronic device is a trustworthy device, thereby improving the security of the password-free login.

[0032] According to a third aspect, a login system is provided, which includes a first electronic device, a second electronic device and a server; the first electronic device is used to receive a first operation instructed by a user to log in to a first application, and send a first request to the second electronic device; the second electronic device is used to: receive the first request sent by the first electronic device; in response to the first request, obtain the first account currently logged in by the first application; send a third request to the server, the third request carrying the first account, and the third request is used to request credentials for password-free login to the first account; the server is used to send the password-free login credentials to the second electronic device in response to the third request; the second electronic device is also used to: receive the password-free login credentials sent by the server; send a first response to the first electronic device, the first response carrying the password-free login credentials; the first electronic device is also used to: receive the first response sent by the second electronic device; send a second request to the server, the second request carrying the password-free login credentials; the server is also used to, in response to the second request, enable the first application of the first electronic device to log in to the first account, and send a second response to the first electronic device; the first electronic device is also used to receive the second response sent by the server.

[0033] In this way, the first electronic device uses the password-free login service provided by the second electronic device that has logged in to the first application. It can log in to the first application without entering an account number, password, or scanning a login QR code and other complex operations, which simplifies the user operation steps and improves the user experience.

[0034] According to the fourth aspect, the first electronic device is also used to: receive a first operation, query first information of a first application of at least one device corresponding to a preset network address, and the at least one device includes a second electronic device; obtain a first account based on the first information, and the first information is used to indicate a logged-in account of the first application; and send a first request to the second electronic device corresponding to the first account.

[0035] In this way, the first electronic device can query the first information of the first application of at least one device corresponding to the preset network address, and request the second electronic device that is currently logged in with the first account of the first application to assist in logging into the first account of the first application without a password.

[0036] According to the fourth aspect, or any implementation method of the above fourth aspect, the second electronic device is also used to: log in to the first account of the first application in response to a user operation; add first information in a shared database corresponding to the first application, the first information is used to indicate the logged-in status of the first application, whether the password-free login service is turned on, the first account, the identification of the first electronic device, and the identification of the second electronic device; the first electronic device is also used to: receive the first operation, query the first information of the first application recorded in the shared database corresponding to the first application, the shared database is used to record the synchronization data of the first application between different devices; obtain the first account according to the first information, the first information is used to indicate the logged-in account of the first application; add a first request in the shared database, the first request includes the identification of the first electronic device and the first account; the second electronic device is also used to: add a first response in the shared database, the first response includes the password-free login credentials, the first account, the identification of the first electronic device, and the identification of the second electronic device.

[0037] In this way, the second electronic device can assist the first electronic device in logging into the first application without a password based on the data synchronization capability provided by the shared database.

[0038] In a fourth aspect, a first electronic device is provided. The first electronic device includes: a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, the memory being used to store computer program code, the computer program code including computer instructions, and when the processor reads the computer instructions from the memory, causing the first electronic device to execute the following: receiving a first operation instructing a user to log in to a first application, sending a first request to a second electronic device, the first request being used to request credentials for a first account currently logged in to the first application of the second electronic device for password-free login; receiving a first response from the second electronic device, the first response carrying the password-free login credentials; sending a second request to a server, the second request carrying the password-free login credentials; and receiving a second response from the server, the second response being used to indicate that the first application of the first electronic device has logged in to the first account.

[0039] According to the fourth aspect, or any implementation method of the above fourth aspect, in response to the user's instruction to log in to the first application's first operation, a first request is sent to the second electronic device, including: receiving the first operation, querying the first information of the first application of at least one device corresponding to the preset network address, the at least one device includes the second electronic device; according to the first information, obtaining the first account, the first information is used to indicate the logged-in account of the first application; sending the first request to the second electronic device corresponding to the first account.

[0040] According to the fourth aspect, or any implementation method of the above fourth aspect, in response to the user's instruction to log in to the first application's first operation, a first request is sent to the second electronic device, including: receiving the first operation, querying the first information of the first application recorded in the shared database corresponding to the first application, the shared database is used to record the synchronization data of the first application between different devices; according to the first information, obtaining the first account, the first information is used to indicate the logged-in account of the first application; adding the first request in the shared database, the first request including the identifier of the first electronic device and the first account.

[0041] According to the fourth aspect, or any implementation method of the fourth aspect above, obtaining the first account based on the first information includes: displaying multiple accounts when the logged-in accounts indicated by the first information include multiple accounts; obtaining the first account selected by the user from the multiple accounts based on the user's second operation; or confirming the first account when the logged-in accounts indicated by the first information only include the first account.

[0042] According to the fourth aspect, or any implementation of the fourth aspect above, the first information is also used to indicate that the first application has enabled a password-free login service.

[0043] According to the fourth aspect, or any implementation of the fourth aspect above, the preset network address includes an Internet Protocol IP address and a port address of a password-free login service, and the IP address is an address included in the local area network to which the first electronic device is connected.

[0044] According to the fourth aspect, or any implementation method of the above fourth aspect, the second request also carries second password-free login verification information, and the second password-free login verification information includes the identification of the first electronic device, the identification of the second electronic device, and the first account; the second password-free login verification information is used to verify the validity of the password-free login credentials.

[0045] In a fifth aspect, a second electronic device is provided. The second electronic device includes: a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, the memory being used to store computer program code, the computer program code including computer instructions, and when the processor reads the computer instructions from the memory, causing the second electronic device to execute the following: receiving a first request sent by a first electronic device; in response to the first request, obtaining a first account currently logged into a first application of the second electronic device; sending a third request to a server, the third request carrying the first account, the third request being used to request credentials for password-free login to the first account; receiving the password-free login credentials sent by the server; and sending a first response to the first electronic device, the first response carrying the password-free login credentials, the password-free login credentials being used for password-free login to the first account by the first application of the first electronic device.

[0046] According to the fifth aspect, or any implementation of the fifth aspect above, the password-free login service of the first application of the second electronic device has been enabled.

[0047] According to the fifth aspect, or any implementation of the above fifth aspect, when the processor reads computer instructions from the memory, it also enables the second electronic device to execute: in response to user operations, log in to the first account of the first application; add first information in the shared database corresponding to the first application, and the first information is used to indicate the logged-in status of the first application, whether the password-free login service is turned on, the first account, the identification of the first electronic device, and the identification of the second electronic device.

[0048] According to the fifth aspect, or any implementation method of the above fifth aspect, a first response is sent to the first electronic device, and the first response carries the password-free login credentials, including: adding the first response to the shared database, the first response including the password-free login credentials, the first account, the identification of the first electronic device, and the identification of the second electronic device.

[0049] According to the fifth aspect, or any implementation of the above fifth aspect, when the processor reads computer instructions from the memory, it also enables the second electronic device to execute: confirming that the first electronic device is a trusted device, and the trusted device includes a device that logs in to the same system account as the second electronic device, or a device that is in the same trusted group as the second electronic device.

[0050] In a sixth aspect, a chip system is provided, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is configured to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method of the first aspect or any one of the embodiments of the first aspect. Alternatively, the at least one processor executes the method of the second aspect or any one of the embodiments of the second aspect.

[0051] In a seventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code). When the computer program is executed by an electronic device, the electronic device executes the method of the first aspect or any one of the embodiments of the first aspect. Alternatively, the electronic device executes the method of the second aspect or any one of the embodiments of the second aspect.

[0052] In an eighth aspect, a computer program product is provided. When the computer program product is executed on an electronic device, the electronic device executes the method of the first aspect or any one of the embodiments of the first aspect. Alternatively, the electronic device executes the method of the second aspect or any one of the embodiments of the second aspect.

[0053] In a ninth aspect, a circuit system is provided, the circuit system including a processing circuit, the processing circuit being configured to execute the method of the first aspect or any one of the embodiments of the first aspect. Alternatively, the processing circuit being configured to execute the method of the second aspect or any one of the embodiments of the second aspect.

[0054] The technical effects of the aforementioned aspects can be referenced with each other and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 Schematic diagram of the login method provided in this application embodiment Figure 1 ;

[0056] Figure 2 A schematic diagram of a communication system to which the login method provided in an embodiment of the present application is applied;

[0057] Figure 3 A schematic diagram of the hardware structure of a first electronic device provided in an embodiment of the present application;

[0058] Figure 4 A schematic diagram of the hardware structure of the server provided in the embodiment of the present application;

[0059] Figure 5 Schematic diagram of the login method provided in this application embodiment Figure 2 ;

[0060] Figure 6 Schematic diagram of the login method provided in this application embodiment Figure 3 ;

[0061] Figure 7 Schematic diagram of the login method provided in this application embodiment Figure 4 ;

[0062] Figure 8 Schematic diagram of the login method provided in this application embodiment Figure 5 ;

[0063] Figure 9 Schematic diagram of the login method provided in this application embodiment Figure 6 ;

[0064] Figure 10 Schematic diagram of the login method provided in this application embodiment Figure 7 ;

[0065] Figure 11 A schematic structural diagram of a first electronic device provided in an embodiment of the present application;

[0066] Figure 12 A schematic structural diagram of a second electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and claims of the present application, the singular expressions "one", "a kind of", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0068] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0069] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0070] In the embodiment of the present application, the first application is used to refer to a specific application, such as a video application, a music playback application, a social application, etc.

[0071] In some embodiments, after multiple electronic devices are connected to a local area network. If the user needs to log in to the same first application on these electronic devices, the login process of each electronic device is independent of each other. Every time the user logs in to the first application on an electronic device that is not logged in to the first application, he needs to enter the account number, password, or scan the login QR code to successfully log in. This operation will become more cumbersome as the number of electronic devices that need to log in to the first application increases. Especially in scenarios where the login account credentials of the first application are invalid, the user has multiple accounts that can log in to the first application and needs to switch, or the electronic device in the logged-in state of the first application is not on site and it is inconvenient to scan the login QR code, the complexity of the user operation will be higher.

[0072] For example, Figure 1 As shown, when a user needs to log in to a first application on a laptop, they need to enter their account and password, or scan a QR code on another electronic device that is already logged in to the first application to log in. Once the user successfully logs in to the first application on the laptop, the user or another user needs to log in to the first application on a mobile phone, and they need to repeat the steps to successfully log in to the first application. This operation is cumbersome and the user experience is poor.

[0073] For example, in a family, the father purchased a paid account for a video application to watch videos on a laptop. When the mother and the child are at home and the mother needs to use the paid account to watch videos, if the laptop is being used by the child for study, the mother needs to log in to the account on another electronic device (such as a mobile phone) to watch videos, but the mother does not know the account number and password of the paid account. Then the mother needs to contact the father to confirm the account number and password, or send the login QR code to the father and let the father scan the login QR code through another electronic device that has logged in the first application paid account. Only then can the mother successfully use the paid account to log in to the video application on the mobile phone. The whole process is not only cumbersome to operate, but also requires the assistance of other users to successfully log in.

[0074] Therefore, embodiments of the present application provide a login method, electronic device, and system. In these embodiments, a first electronic device, with the assistance of a second electronic device currently logged into the first application, can log into the first application without requiring a password, or requiring complex operations such as entering an account number and password or scanning a login QR code, thereby simplifying user operation steps and improving the user experience.

[0075] Figure 2 Schematic diagram of a communication system for the login method provided in the embodiment of the present application. Figure 2 As shown, the communication system includes a first electronic device 100 , a second electronic device 200 and a server 300 .

[0076] In some examples, the first electronic device 100 or the second electronic device 200 can be a terminal device such as a computer, a mobile phone, a computer, a tablet computer, a laptop computer, an augmented reality (AR) / virtual reality (VR) device, a mixed reality (MR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, or an artificial intelligence (AI) device. The embodiments of the present application do not limit the specific type of the first electronic device 100 or the second electronic device 200.

[0077] In some examples, the server 300 may be a device or server with computing capabilities, such as a cloud server or a network server. The server 300 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center.

[0078] In some embodiments, a wireless communication connection is established between the first electronic device 100 and the second electronic device 200. The wireless communication technology used to establish the wireless communication connection includes, but is not limited to, at least one of the following: Bluetooth (BT) (e.g., traditional Bluetooth or Bluetooth low energy (BLE)), wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) networks), near field communication (NFC), Zigbee, frequency modulation (FM), infrared (IR), etc.

[0079] In some examples, the first electronic device 100 and the second electronic device 200 may also establish a communication connection through a third-party device, such as a router, a gateway, etc.

[0080] In some examples, the first electronic device 100 and the second electronic device 200 establish a wireless communication connection via a simple local area network. For example, the first electronic device 100 and the second electronic device 200 are both connected to the same router and can discover each other and establish a wireless communication connection.

[0081] In some examples, the first electronic device 100 and the second electronic device 200 support a proximity discovery function. For example, when the first electronic device 100 is close to the second electronic device 200, the first electronic device 100 and the second electronic device 200 can discover each other and then establish a wireless communication connection such as a Wi-Fi peer-to-peer connection or a Bluetooth connection.

[0082] In some embodiments, the first electronic device 100 is an electronic device in a first application non-logged-in state, and the second electronic device 200 is an electronic device in a first application logged-in state. In some examples, the first electronic device 100 can implement password-free login through the interaction between the second electronic device 200 and the server 300, thereby reducing the difficulty of user operation. For example, the first electronic device 100 requests the second electronic device 200 to log in to the account currently logged in to the first application of the second electronic device without password. In response to the request, the second electronic device 200 requests the server 300 to obtain the password-free login credentials, and forwards the password-free login credentials to the first electronic device 100. Afterwards, the first electronic device 100 can request the server 300 to log in to the first application without password based on the password-free login credentials.

[0083] In some examples, the first electronic device 100 and the second electronic device 200 in the embodiments of the present application may be implemented by different devices, and the different devices may have the same, similar or somewhat different hardware structures, such as Figure 3 The hardware structure shown.

[0084] For example, the first electronic device 100 has Figure 3 As an example, the hardware structure shown in Figure 3 The hardware structure shown is described.

[0085] like Figure 3 As shown, the first electronic device 100 may include a processor 310, an external memory interface 320, an internal memory 321, a power management module 341, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a sensor module 380, a button 390, a display screen 394, and a subscriber identification module (SIM) card interface 395, etc.

[0086] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0087] The processor 310 may include one or more processing units. For example, the processor 310 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0088] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0089] Processor 310 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 310 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 310. If processor 310 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 310 latency, and thus improves system efficiency.

[0090] The wireless communication function of the first electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor and the baseband processor.

[0091] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in first electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0092] The mobile communication module 350 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the first electronic device 100. The mobile communication module 350 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 350 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 350 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 350 can be set in the processor 310. In some embodiments, at least some of the functional modules of the mobile communication module 350 can be set in the same device as at least some of the modules of the processor 310.

[0093] The wireless communication module 360 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., applied on the first electronic device 100. The wireless communication module 360 can be one or more devices integrating at least one communication processing module. The wireless communication module 360 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310. The wireless communication module 360 can also receive the signal to be sent from the processor 310, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0094] In some embodiments, the antenna 1 of the first electronic device 100 is coupled to the mobile communication module 350, and the antenna 2 is coupled to the wireless communication module 360, so that the first electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0095] The first electronic device 100 implements display functionality through a GPU, display screen 394, and an application processor. The GPU is a microprocessor for image processing that connects the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or change display information.

[0096] The display screen 394 is used to display images, videos, etc. The display screen 394 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the first electronic device 100 may include one or N display screens 394, where N is a positive integer greater than one.

[0097] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first electronic device 100. The external memory card communicates with the processor 310 through the external memory interface 320 to implement data storage functions. For example, files such as music and videos can be stored in the external memory card.

[0098] The internal memory 321 can be used to store computer executable program codes, which include instructions. The internal memory 321 may include a program storage area and a data storage area. Among them, 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 during the use of the first electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 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, a universal flash storage (UFS), etc. The processor 310 executes various functional applications and data processing of the first electronic device 100 by running instructions stored in the internal memory 321 and / or instructions stored in a memory provided in the processor.

[0099] The buttons 390 include a power button, a volume button, etc. The buttons 390 may be mechanical buttons or touch buttons. The first electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the first electronic device 100.

[0100] The SIM card interface 395 is used to connect a SIM card. The SIM card can be connected to and disconnected from the first electronic device 100 by inserting or removing the SIM card into or from the SIM card interface 395. The first electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than one.

[0101] It is understandable that the embodiments of the present application are as follows Figure 3 The structure does not constitute the sole limitation on the structural implementation of the first electronic device 100. In other embodiments of the present application, the first electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0102] In some examples, Figure 4 Schematic diagram of the hardware structure of the server 300 provided in an embodiment of the present application.

[0103] like Figure 4 As shown, the server 300 includes at least one processor 401 , a communication line 402 , a memory 403 and at least one communication interface 404 . The memory 403 may also be included in the processor 401 .

[0104] The processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0105] Communication link 402 may include a pathway for transmitting information between the aforementioned components.

[0106] Communication interface 404 is used to communicate with other devices. In embodiments of the present application, the communication interface can be a module, circuit, bus, interface, transceiver, or other device capable of implementing communication functions, used to communicate with other devices. In some examples, when the communication interface is a transceiver, the transceiver can be an independently provided transmitter that can be used to send information to other devices, or the transceiver can be an independently provided receiver that is used to receive information from other devices. The transceiver can also be a component that integrates the functions of sending and receiving information. Embodiments of the present application do not limit the specific implementation of the transceiver.

[0107] The memory 403 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage, magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processor via the communication line 402. The memory may also be integrated with the processor.

[0108] The memory 403 is used to store computer-executable instructions for implementing the solution of the present application, and the execution is controlled by the processor 401. The processor 401 is used to execute the computer-executable instructions stored in the memory 403, thereby implementing the login method provided in the following embodiments of the present application.

[0109] In some examples, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, instructions, computer programs or other names, and the embodiments of the present application do not specifically limit this.

[0110] In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as Figure 4 CPU0 and CPU1 in.

[0111] In a specific implementation, as an embodiment, the server 200 may include multiple processors, such as Figure 4 4 and 5. The processors 401 and 407 are shown in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0112] It is understandable that the embodiments of the present application are as follows Figure 4The structure does not constitute the sole limitation on the structural implementation of server 300. In other embodiments of the present application, server 300 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0113] In some embodiments, after a first application on a second electronic device successfully logs in, a password-free login service is enabled, enabling other first electronic devices that are not logged in to the first application to automatically log in to the first application based on the password-free login service. The password-free login service is a service that saves login account information of a first application that has been logged in by a second electronic device, and assists other first electronic devices that are not logged in to the first application to log in to the saved login account of the first application.

[0114] For example, Figure 5 As shown, the second electronic device (such as a laptop) uses the first account to log in to the first application in response to the user inputting an account number, password, or scanning a login QR code. After the second electronic device successfully logs in to the first application using the first account, it turns on the secret-free login service based on the first application. When the first electronic device logs in to the first application, it queries the secret-free login service turned on by the second electronic device in the networking environment, and uses the service to log in to the first application without entering an account number, password, or scanning a login QR code and other complex operations. After the first electronic device uses the secret-free login service provided by the second electronic device to log in to the first application, it also turns on the secret-free login service based on the first application and provides the service to other electronic devices that are not logged in to the first application. In this way, the first electronic device uses the secret-free login service provided by the second electronic device that is in the first application login state, without entering an account number, password, or scanning a login QR code and other complex operations, to log in to the application, which simplifies the user operation steps and improves the user experience.

[0115] In some embodiments, the user can instruct the second electronic device to log in to the first application in a normal login manner. Figure 6 As shown, the normal process of logging into the first application includes the following S601-S603.

[0116] S601: The second electronic device receives an operation of a user logging into a first account of a first application in a common login manner.

[0117] For example, a user logging into a first account of a first application through a normal login method can be done by entering the first account and password on a second electronic device. Alternatively, a user using another electronic device logged into the first account of the first application can scan a first application login QR code generated by a second electronic device, and the second electronic device receives a successful scan verification receipt from the server.

[0118] S602: The second electronic device sends a common login request to the server.

[0119] In some embodiments, the second electronic device sends a login request to a login authorization service of a server in response to a user logging into the first account of the first application. In some examples, the login request carries the first account and the input password.

[0120] S603: The server sends a normal login success receipt to the second electronic device.

[0121] In some embodiments, the server is used to maintain a mapping relationship between an account number and a password. After receiving a normal login application sent by the second electronic device, the server obtains the first account number and the input password carried therein, and performs a password verification on the input password. During the password verification process, the server obtains the password corresponding to the first account number from the maintained mapping relationship, and determines whether the password is the same as the input password carried in the normal login application. If they are the same, the server can determine that the password verification has passed and send a normal login success receipt to the second electronic device; if they are different, the server can determine that the password verification has failed and send a normal login failure receipt to the second electronic device.

[0122] In this way, the second electronic device successfully logs into the first account of the first application.

[0123] In some embodiments, a password-free login service is configured in the second electronic device or a password-free login service is configured in the first application of the second electronic device. The password-free login service is used to assist applications in other electronic devices that are not logged in to perform password-free login, thereby reducing the user's ordinary login operations during the login process. In some examples, the second electronic device responds to the ordinary login success receipt sent by the server, logs in to the first account of the first application, and automatically starts the password-free login service based on the first application when it detects that the second electronic device meets the preset security conditions. The preset security condition can be that the second electronic device has logged in to the operating system account, or that the second electronic device is in a mutual trust group between electronic devices, etc.

[0124] In some examples, the second electronic device only enables the password-free login service based on the first application when it is logged into the operating system account or is in a mutual trust group between electronic devices. Subsequently, the second electronic device allows the first electronic device that is logged into the same operating system account or is in the same mutual trust group as the second electronic device to access or use the service provided by the second electronic device. In this way, the security of the service operation is guaranteed. In some examples, users can also choose to turn on or off the password-free login service according to their needs.

[0125] Exemplarily, after logging into the first application, the second electronic device displays a settings interface, and displays a confirmation control in the settings interface for whether to turn on the password-free login service based on the first application. The second electronic device responds to the user's confirmation to turn on the confirmation control and turns on the password-free login service based on the first application. In some examples, the second electronic device may also default to the user's choice to turn on the password-free login service based on the first application in the settings interface. The second electronic device may also cancel the turning on of the service in response to the user's operation. In some examples, the second electronic device may also directly turn on the password-free login service based on the first application after logging into the first application. For example, the second electronic device may respond to the user's setting operation in the first application or in the second electronic device, and set the second electronic device to directly turn on the password-free login service based on the first application after logging into the first application.

[0126] In some possible implementations, the server receives a common login request sent by the second electronic device through a login authorization service, and authorizes the second electronic device to log in to the first account of the first application. After the second electronic device successfully logs in to the first account of the first application, it starts a password-free login service based on the first application. For example, Figure 7 As shown in S602 in FIG, the second electronic device sends a normal login request to the login authorization service of the server. Figure 7 As shown in S603, the login authorization service of the server sends a normal login success receipt to the second electronic device. After that, the second electronic device logs in to the first account of the first application and starts the password-free login service based on the first application.

[0127] In some embodiments, the password-free login service based on the first application enabled by the second electronic device is an HTTP service initiated on the local area network when the second electronic device logs into the first application. Exemplarily, the password-free login service based on the first application on the second electronic device communicates between devices or services via a designated port on the second electronic device. Therefore, when the first electronic device enables the password-free login service based on the first application, it determines a designated port address for the service. The developer of the first application predetermines a designated port range for the password-free login service based on the first application, which serves as a selection range for the electronic device to determine a port for the service. When the second electronic device determines the designated port address for the service, it determines a port within the designated port range as the designated port for the service to communicate between devices or services. For example, the operating system's port range is 0-65535, and the designated port range for the password-free login service based on the first application is 10020-10030. When determining a port for the service, the second electronic device checks, starting with port 10020, the first port in the designated port range, to see if any ports are occupied by other services. For example, the second electronic device first checks whether port 10020 is occupied by other services. If port 10020 is occupied, it checks whether the next port 10021 in the agreed port range is occupied. If the second electronic device finds that port 10021 is not occupied, it determines that port 10021 is the agreed port for the service.

[0128] In this way, after logging into the first account of the first application, the second electronic device starts the password-free login service based on the first application based on the http service.

[0129] In other embodiments, if multiple applications in an electronic device simultaneously start the password-free login service, the agreed port ranges between the multiple password-free login services may overlap. In the case that the ports within the agreed port range of a certain password-free login service are all occupied by other services or processes, the electronic device may not be able to determine a suitable port address for the password-free login service. For example, the agreed port range of the password-free login service based on the first application is 10020-10030, and the electronic device has allocated all ports within the range to other services. Therefore, the electronic device cannot allocate a suitable port address for the password-free login service based on the first application. In addition, the password-free login service is an http service, which is deployed in a local area network. If the electronic devices are connected to an unfamiliar network, such as when the electronic devices access other public but less secure Wi-Fi networks, or when using a 5G network, if the electronic device's password-free login service is exposed to the external network environment, there will be potential security risks. In this case, the electronic device may not be able to assist other electronic devices in the password-free login of the application.

[0130] Therefore, different electronic devices can also synchronize the data corresponding to the first application, such as the login status of the first application, the activation status of the password-free login service, the first application account, the password-free login request, etc., based on the data synchronization system. This enables the second electronic device to assist other electronic devices in performing password-free login to the first application. For example, after the second electronic device logs in to the first account of the first application, it can also add third information to the shared database corresponding to the first application. The third information is used to indicate the logged-in status of the first application, the activation of the password-free login service based on the first application, and the first account of the second electronic device to log in to the first application. The second electronic device assists other electronic devices in logging into the first account of the first application without a password by writing the third information in the shared database of the first application.

[0131] Among them, the shared database is a component of the data management system in the electronic device. Each application in the electronic device has its own shared database, and the shared databases of different applications have their own tables and files. The data management system of the electronic device provides the electronic device with data storage, data management, and cross-device data synchronization capabilities. Based on the above capabilities provided by the data management system, the electronic device can synchronize the data updates in the shared database of a certain application to the shared database of the same application in other electronic devices in a networked environment. In other words, the shared databases of the same application in different electronic devices can synchronize, modify, and query data related to password-free login.

[0132] For example, if the first electronic device, the second electronic device, and the third electronic device are electronic devices in the same networking environment. When data related to the password-free login service based on the first application is added, deleted, or modified in the shared database of the first application on the second electronic device, the shared database of the first application on the first electronic device can also obtain the changes in the shared database of the first application on the second electronic device. The first application is not installed on the third electronic device, and the third electronic device cannot obtain the changes in the shared database of the first application on the second electronic device.

[0133] In some examples, the data management system can provide cross-device data synchronization capabilities between electronic devices based on the soft bus subsystem. Since the soft bus subsystem can provide electronic devices with the ability to provide distributed communication between near-field devices, it provides device discovery, connection, networking, and transmission functions that do not distinguish between communication methods. Therefore, based on the distributed communication capabilities between near-field devices provided by the soft bus subsystem for electronic devices, the data management system can provide more flexible and diverse application scenarios for password-free login services between electronic devices. In some examples, the soft bus subsystem can also be other systems that can provide distributed communication capabilities between near-field devices.

[0134] In some examples, the data management system can also provide security for cross-device data synchronization based on systems such as the account subsystem and the security subsystem.

[0135] In this way, after the electronic device successfully logs into the first application, it starts the password-free login service based on the first application. Subsequently, other electronic devices that are not logged into the first application can use this service to log into the first application without having to enter the account password or scan the login QR code, simplifying the user operation steps and improving the user experience.

[0136] The following is a detailed introduction to the password-free login process of the first application of the first electronic device.

[0137] Figure 8 This is a flowchart of a login method provided in an embodiment of the present application. For example, Figure 8 As shown, the method includes S801-S808.

[0138] S801: The first electronic device receives a first operation from a user indicating logging into a first application.

[0139] The first application in the first electronic device is in a non-logged-in state.

[0140] In some embodiments, the first operation may be an operation of the user starting the first application in the first electronic device. Alternatively, the first operation may be an operation of the user instructing to display a login interface in the first application.

[0141] S802: The first electronic device sends a first request to the second electronic device.

[0142] The first request is used to request to obtain the credentials of the first account currently logged in by the first application for password-free login to the second electronic device.

[0143] In some embodiments, in response to a first operation, a first electronic device detects that a first application on the first electronic device is not logged in. The first electronic device may then query a nearby electronic device (e.g., a second electronic device) that is logged in to the first application. Thereafter, the first electronic device may send a first request to the second electronic device to obtain password-free login credentials.

[0144] For example, as described above, after logging into the first account, the first application of the second electronic device can enable a password-free login service based on an HTTP service, or provide the password-free login service through a shared database. The first electronic device can then also request the password-free login service based on the HTTP service or the shared database. The following describes these two implementations.

[0145] Method 1: The first electronic device requests the password-free login service based on the http service.

[0146] For example, Figure 9As shown, the process includes S901-S904.

[0147] S901: A first electronic device queries first information of a first application of at least one device corresponding to a preset network address.

[0148] In some embodiments, the first information is used to indicate the logged-in account of the first application, and is also used to indicate that the first application has enabled the password-free login service. For example, the first information of the first application may include the first account of the second electronic device currently logged into the first application, and that the second electronic device has enabled the password-free login service. The first electronic device queries the first information of the first application of at least one device corresponding to the preset network address, including the first electronic device searching whether there are other electronic devices (at least one device) in the preset network address (such as the local area network where the first electronic device is located), and whether other electronic devices are allowed to assist the first electronic device in logging into the first application without a password (such as whether the first information of the first application of other electronic devices can be queried).

[0149] In some embodiments, the preset network address includes an Internet Protocol (IP) address and a port address of a password-free login service. The IP address is the IP address of the first electronic device in the local area network to which it is connected, and the port address of the password-free login service is the port address of the password-free login service based on the first application. The first electronic device queries the local area network in which it is located based on the Internet Protocol IP address to see whether other electronic devices are connected. If the first electronic device finds other electronic devices connected to the local area network. The first electronic device further queries the first information of the first application of the other electronic device based on the port address of the password-free login service.

[0150] In some examples, the first electronic device may query the first information of the first application of at least one device corresponding to the preset network address by sending a request to the at least one device to access the password-free login service based on the first application. In some examples, the first electronic device may send the request to the at least one device to access the password-free login service based on the first application by polling or querying.

[0151] The following describes a method in which the first electronic device sends the request in a polling manner. Exemplarily, the IP address range of the local area network where the first electronic device is located is, for example, 192.188.x.0-192.188.x.255. The first two digits of the range are fixed, the third digit is determined by a single router of the simple local area network, and the fourth digit ranges from 0 to 255. According to the range of the fourth digit, there are a maximum of 256 IP addresses in the local area network, and each IP address corresponds to an electronic device connected to the local area network. The agreed port range corresponding to the port address of the password-free login service based on the first application is 10020-10030. When the first electronic device sends the above request to the address of the combination of the above IP address and port address in a polling manner, if according to the agreed port range, starting from the first IP address (i.e., 192.188.x.1) of the IP address, a request to access the password-free login service based on the first application is sent to each port in the agreed port range of each IP. For example, the first electronic device sends the request to ports 10020, 10021, ..., 10030 of the first IP address (ie, 192.188.x.1) to the 255th IP address (ie, 192.188.x.255), thereby implementing a process of sending the request in a polling manner.

[0152] The following describes a method in which the first electronic device sends the request in the form of a query. For example, after the first electronic device learns which IP addresses in the local area network have corresponding connected electronic devices through an agreed method, it directly sends a request for access to the password-free login service based on the first application to the electronic device corresponding to the IP address according to the agreed port range. For example, the first electronic device learns that the 192.188.x.5 address and the 192.188.x.8 address in the local area network are connected to other electronic devices. The first electronic device sends a request for access to the password-free login service based on the first application to the 10020 port, 10021 port...10030 port of the electronic device corresponding to the 192.188.x.5 address, and the 10020 port, 10021 port...10030 port corresponding to the 192.188.x.8 address in sequence.

[0153] S902: The second electronic device sends first information of the first application to the first electronic device.

[0154] In some embodiments, the second electronic device obtains the first information of the first application in response to the first electronic device querying the first information of the first application of at least one device corresponding to the preset network address, and sends the first information to the first electronic device.

[0155] For example, if a second electronic device that has enabled a password-free login service based on the first application is connected to the local area network, the second electronic device sends the first information of the first application to the first electronic device in response to the query operation of the first electronic device.

[0156] S903: The first electronic device obtains the first account according to the first information.

[0157] S904: The first electronic device sends a first request to the second electronic device corresponding to the first account.

[0158] In some embodiments, after receiving a first message including a first account number from a second electronic device, a first electronic device obtains the first account number from the first message. The first electronic device then generates a first request that includes the first account number. The first electronic device then sends the first request to the second electronic device.

[0159] In this way, the first electronic device and the second electronic device share the logged-in first account based on the http service, thereby helping the first electronic device obtain the first account that can be logged in without a password, and requesting the second electronic device to log in to the first account without a password.

[0160] In some embodiments, after receiving the query operation from the first electronic device, the second electronic device can also perform a device trustworthiness check on the first electronic device. After confirming that the first electronic device is a trustworthy device, the second electronic device sends the first information to the first electronic device, thereby ensuring the security of the information.

[0161] In some examples, the device trustworthiness verification can be implemented in a variety of ways. For example, the second electronic device verifies whether the operating system accounts logged in by the first electronic device and the second electronic device are consistent, or verifies whether the first electronic device and the second electronic device belong to the same mutual trust group. Among them, when the first electronic device verifies that the operating system accounts logged in by the first electronic device and the second electronic device are consistent, it determines that the device trustworthiness verification has passed, otherwise it is failed. Alternatively, when the first electronic device verifies that the first electronic device and the second electronic device belong to the same mutual trust group, it determines that the device trustworthiness verification has passed, otherwise it is failed.

[0162] Among them, a mutual trust group is a mutually trusted group established between electronic devices, which can be established between electronic devices based on operating system accounts or through other means. For example, electronic devices logged in to the same operating system account are in a mutual trust group by default. For another example, a mutual trust group can be a mutually trusted group established between electronic devices in response to user operations in scenarios such as family, friends gathering, and company team building, such as a family group, work group, company group, team group, temporary group, etc. Electronic devices in a mutual trust group can share some authorized open resources (such as services) with each other or allow communication between electronic devices based on accounts.

[0163] In some embodiments, after the second electronic device passes the device credibility verification of the first electronic device, it obtains the first account currently logged in by the first application of the second electronic device and sends the first information of the first application to the first electronic device.

[0164] Exemplarily, after the first electronic device passes the device trustworthiness verification of the first electronic device, the second electronic device's first application-based password-free login service provides the first electronic device with the first application-based password-free login service, and sends the first information of the first application to the first electronic device through the agreed port. If the second electronic device's first application-based password-free login service fails the device trustworthiness verification of the first electronic device, the second electronic device does not provide the first electronic device with the first application-based password-free login service, nor does it send the first information of the first application to the first electronic device. Alternatively, the second electronic device sends a rejection response to the first electronic device through the agreed port.

[0165] In this way, the second electronic device sends the first information of the first application to the first electronic device only after confirming that the first electronic device is a trusted device, thereby ensuring the security of password-free login.

[0166] Method 2: The first electronic device requests the password-free login service based on the shared database.

[0167] For example, Figure 10 As shown, the process includes S1001-S1003.

[0168] S1001: In response to a user operation, the second electronic device logs in to the first account of the first application and adds first information to the shared database corresponding to the first application. The first information is used to indicate the logged-in status of the first application, whether the password-free login service is turned on, the first account, the identification of the first electronic device, and the identification of the second electronic device.

[0169] In some embodiments, if other electronic devices log in to the first application and enable a password-free login service based on the first application, information related to the first information of the first application will be recorded in the shared database.

[0170] For example, after the second electronic device logs in to the first account of the first application, it adds first information to the shared database corresponding to the first application. The first information indicates that the first application of the current second electronic device is logged in, the password-free login service based on the first application is turned on, and the second electronic device logs in to the first account of the first application.

[0171] S1002: The first electronic device receives a first operation and queries first information of the first application recorded in a shared database corresponding to the first application.

[0172] In some embodiments, different electronic devices synchronize the data of the first application in the shared database in a preset manner. Optionally, the preset manner includes data push and data pull. For example, after the second electronic device updates the data in the shared database of the first application, it pushes the updated first application data to other electronic devices in the distributed communication system. For another example, after receiving the user's operation to launch the first application, the first electronic device requests other electronic devices in the distributed synchronous communication system to pull the latest first application data.

[0173] In some embodiments, after receiving a first operation from a user indicating a login to a first application, the first electronic device triggers a query of data recorded in a shared database corresponding to the first application to obtain first information. That is, in response to the user's first operation, the first electronic device queries the distributed communication system to determine whether there are any electronic devices that have logged into the first application, whether the electronic devices that have logged into the first application have enabled a password-free login service, and the account information for the electronic devices that have enabled the password-free login service.

[0174] S1003: The first electronic device obtains the first account according to the first information, and adds a first request to the shared database. The first request includes the identifier of the first electronic device and the first account.

[0175] In some embodiments, after the first electronic device queries the shared database for the first information added by the second electronic device in the database, it can obtain the first account included therein, and can determine that the first application of the second electronic device has logged in to the first account, and can log in to the first account through the password-free login service of the second electronic device. Then, the first electronic device adds a first request to the shared database to request the second electronic device to assist in the password-free login of the first account of the first application. In some examples, the first request may also include information such as the identifier of the second electronic device. Among them, other electronic devices in the distributed communication system can read the first application data in the shared database. Therefore, the first electronic device adds the identifier of the second electronic device in the first request, so that other electronic devices can distinguish that the request object of the current first request is the second electronic device. Then, after the second electronic device obtains the synchronization data of the first application, it can read the first request based on the identifier of the first electronic device.

[0176] It should be understood that the first electronic device and the second electronic device belong to the same distributed communication system and synchronize data for the first application through a shared database. Therefore, the first electronic device and the second electronic device are mutually trusted devices. Therefore, the second electronic device does not need to authenticate the first electronic device as a trusted device.

[0177] In this way, the first electronic device and the second electronic device share the logged-in first account based on the shared database, thereby helping the first electronic device obtain the first account that can be logged in without a password, so as to request the second electronic device to log in to the first account without a password.

[0178] In some embodiments, if the logged-in accounts indicated by the first information include multiple accounts, the first electronic device displays the multiple accounts. Based on the user's second operation, the first electronic device obtains a first account selected by the user from the multiple accounts. Alternatively, if the logged-in accounts indicated by the first information include only the first account, the first account is confirmed.

[0179] Exemplarily, the first electronic device may query the first information of the first application of multiple other electronic devices that have logged into the first application. The multiple first information corresponds to multiple accounts that can log in to the first application. The first electronic device needs to determine which account to use to log in to the first application based on the user operation. The first electronic device can display the accounts currently available to the user on the first application login interface, and determine the account for password-free login in response to the user's second operation. In some examples, the first electronic device displays all accounts corresponding to the first information queried by the first electronic device, images corresponding to the accounts, and normal login options on the login interface of the first application. In response to the user selecting the first account to log in, the first electronic device determines to use the first account to log in to the first application. In some examples, the user may need to use the normal login method to log in to the first application in the first electronic device, and the first electronic device may also display the normal login option at the same time in the first application login interface.

[0180] In this way, when there are multiple electronic devices nearby that have logged in the first application, the first electronic device can also log in to the account of the first application that the user wants to log in according to the user's choice to meet the user's needs.

[0181] Thus, through the above Figure 9 and Figure 10 In an example implementation, a second electronic device receives a first request from a first electronic device requesting password-free login to a first account of a first application. In response to the first request, the second electronic device can assist the first electronic device in implementing the password-free login through the following steps. That is, after S802, the following steps are also included.

[0182] S803: In response to the first request, the second electronic device obtains a first account currently logged into the first application of the second electronic device.

[0183] In some embodiments, after receiving the first request from the first electronic device, the second electronic device determines that it needs to assist the first electronic device in logging into the first application. The second electronic device then obtains the first account currently used to log into the first application of the second electronic device, and uses this to assist the first electronic device in requesting the server to log into the first application using the first account without a password.

[0184] S804: The second electronic device sends a third request to the server, where the third request carries the first account.

[0185] The third request is used to request credentials for password-free login to the first account.

[0186] In some examples, the third request may further include an identifier of the first electronic device and an identifier of the second electronic device, so that the server can confirm the identity of the device requesting the password-free login credential.

[0187] S805: The server sends the password-free login credentials to the second electronic device in response to the third request.

[0188] The password-free login credentials are used for the first application of the first electronic device to log in to the first account without a password.

[0189] In some embodiments, after receiving the third request from the second electronic device, the server determines that the first application of the second electronic device that sent the third request is logged in and within the login validity period. Furthermore, the server confirms that the first account number carried in the third request is the account currently logged in by the first application of the second electronic device. The server can then generate a password-free login credential and provide the password-free login credential to the second electronic device.

[0190] In this way, the security of password-free login credential generation is guaranteed through the above method.

[0191] In some embodiments, the server may further generate first password-free login verification information in response to the third request. For example, the first password-free login verification information is a digital signature generated by the server based on information such as the identifier of the first electronic device, the identifier of the second electronic device, and the first account number in the third request. The server uses the first password-free login verification information to verify the validity of the password-free login credentials used by the first electronic device when applying for password-free login from the server.

[0192] In some examples, the second request sent by the first electronic device to the server carries second password-free login verification information and password-free login credentials. After the server receives the second request sent by the first electronic device, it can compare the second password-free login verification information with the first password-free login verification information generated by the server side to verify the validity of the password-free login credentials in the second request.

[0193] In some embodiments, after generating the password-free login credential and the first password-free login verification information, the server sends the password-free login credential to the second electronic device. In some examples, the server stores the password-free login credential and the first password-free login verification information to facilitate subsequent verification of the validity of the password-free login credential in the password-free login request of the first electronic device.

[0194] S806: The second electronic device sends a first response to the first electronic device, where the first response carries the password-free login credentials.

[0195] In some embodiments, after the second electronic device receives the password-free login credentials sent by the server, it forwards the password-free login credentials to the first electronic device by sending a first response to the first electronic device.

[0196] In some embodiments, the second electronic device may send the first response directly to the first electronic device. Alternatively, the second electronic device synchronizes the password-free login credentials to the first electronic device through the shared database corresponding to the first application by means of data synchronization. For example, the second electronic device adds a first response to the shared database corresponding to the first application, and the first response includes the password-free login credentials, the first account, the identifier of the first electronic device, and the identifier of the second electronic device. Then, the first electronic device can obtain the first response by means of data synchronization to obtain the first account and the password-free login credentials corresponding to the first account.

[0197] S807: The first electronic device sends a second request to the server, where the second request carries password-free login credentials.

[0198] In some embodiments, after the first electronic device obtains the password-free login credentials in the first response, it sends a second request including the password-free login credentials to the server to request password-free login to the first account of the first application.

[0199] In some examples, the second request also carries second password-free login verification information, which includes the identifier of the first electronic device, the identifier of the second electronic device, and the first account number. The second password-free login verification information is used by the server to verify the validity of the password-free login credential. Exemplarily, the second password-free login verification information is a digital signature generated by the first electronic device based on the identifier of the first electronic device, the identifier of the second electronic device, and the first account number after the first electronic device receives the password-free login credential from the second electronic device.

[0200] S808: In response to the second request, the server enables the first application of the first electronic device to log in to the first account, and sends a second response to the first electronic device.

[0201] In some embodiments, the server sends a second response to the first electronic device to notify the first electronic device that the first application installed thereon has successfully logged into the first account. The second response may be a receipt of a successful password-free login.

[0202] In some examples, the secret-free login credentials may be modified during the data transmission process, and the server may perform a validity verification on the secret-free login credentials in the first request sent by the first electronic device in response to the second request. In some examples, the validity verification includes the server comparing whether the secret-free login credentials in the first request sent by the first electronic device are consistent with the secret-free login credentials cached by the server, and comparing whether the second secret-free login verification information is consistent with the first secret-free login verification information cached by the server. If they are all consistent, the server determines that the validity verification is passed and sends a second response to the first electronic device. If there is an inconsistency, the server determines that the validity verification has failed, does not send the second response to the first electronic device, and / or sends a secret-free login failure receipt to the first electronic device. After the server completes the validity verification, the secret-free login credentials in the second request, the second secret-free login verification information, the secret-free login credentials cached by the server, and the first secret-free login verification information are invalid.

[0203] In this way, after the validity verification is passed, the server authorizes the first electronic device to log in to the first application without password, which can ensure the validity of the password-free login credentials received from the first electronic device and the security of the server's authorization of password-free login to the first application.

[0204] In some embodiments, the first electronic device displays a login success interface on the login interface of the first application in response to the second response received from the server, and / or cancels the display of the login interface of the first application and displays the usage interface of the first application.

[0205] In some embodiments, after successfully logging into the first application, the first electronic device may also enable a password-free login service based on the first application.

[0206] In some embodiments, during the communication process of S802-S808, the first electronic device can use the password-free login service based on the first application opened by the second electronic device, and the server can use the login authorization service of the server to communicate between devices. Figure 7 S802 in the first electronic device sends a first request to the second electronic device for a password-free login service based on the first application. Figure 7 As shown in S804, the password-free login service based on the first application of the second electronic device sends a third request to the login authorization service of the server. Figure 7 As shown in S805 in FIG, the login authorization service of the server responds to the third request and sends the password-free login credential to the password-free login service based on the first application of the second electronic device. Figure 7As shown in S806, the second electronic device's first application-based password-free login service receives the password-free login credentials sent by the server's login authorization service and sends a first response to the first electronic device. Figure 7 As shown in S807 in FIG, the first electronic device receives the first response sent by the password-free login service based on the first application of the second electronic device, and sends a second request to the login authorization service of the server. Figure 7 As shown in S808 , the login authorization service of the server sends a second response to the first electronic device.

[0207] In this way, the second electronic device assists the first electronic device to log in to the first account of the first application without a password, without the user having to enter the account password or scan the login QR code and other complex operations, which simplifies the user operation steps and improves the user experience.

[0208] In some embodiments, if a first electronic device needs to use a password-free login service based on a first application provided by a second electronic device in a network environment to log in to the first application, but the first application of the second electronic device is not in the active state, there will be a technical problem that the first electronic device cannot log in to the first application. For example, in a home scenario, if a tablet that is logged in to the first application using the first account enters a dormant state, or the first application on the tablet is closed, the user needs to use the first account to log in to the first application on the mobile phone, but cannot obtain the first account number and password, and there is no other electronic device to assist in scanning the login QR code.

[0209] For the above problem, after the electronic device detects that the user has exited the first application, such as closing the application process, the electronic device can also use the background long-term task to keep the password-free login service based on the first application running. The background long-term task refers to the electronic device causing the first application to run in the background for a long time in order to prevent functional abnormalities that may be caused by the suspension of the process of the first application. In some examples, the electronic device can determine whether the password-free login service based on the first application is to run as a background long-term task after the first application exits in response to the user's setting operation.

[0210] In some examples, the electronic device's operating system will perform corresponding checks to ensure that the long-running background task based on the first application's password-free login service is running. Furthermore, the electronic device's operating system may have a message notification bar associated with the long-running background task. In response to the user deleting the message notification bar, the electronic device will terminate the long-running background task.

[0211] For example, after the first application of the second electronic device retreats to the background, the shared database of the first application of the second electronic device can still exist in the second electronic device in the form of a long-term task, communicate with the shared database of the first application of the first electronic device, and provide the first electronic device with a password-free login service based on the first application. For example, in a home scenario, when a tablet that was originally in a first application login state enters a dormant state, or when the first application of the tablet is closed, the shared database of the first application of the tablet can still communicate with the shared database of the first application of other electronic devices (such as a mobile phone), so that the mobile phone can still use the password-free login service based on the first application provided by the tablet to log in to the first application. In some examples, when an electronic device relies on an http service to provide a password-free login service based on the first application, after the first application of the electronic device retreats to the background, the electronic device can also keep the service running in the form of a long-term task.

[0212] In this way, even if the second electronic device exits the first application, the first electronic device can still use the password-free login service of the second electronic device to implement password-free login, simplifying user operations and improving user experience.

[0213] Combination of the above Figure 5-10 The login method provided by the embodiment of the present application is described in detail. Figure 11 、 Figure 12 The first electronic device and the second electronic device provided in the embodiments of the present application are described in detail.

[0214] In one possible design, Figure 11 This is a schematic diagram of the structure of the first electronic device provided in the embodiment of the present application. Figure 11 As shown, the first electronic device 1100 may include: a transceiver unit 1101 and a processing unit 1102. The first electronic device 1100 may be used to implement the functions of the first electronic device involved in the above method embodiment.

[0215] Optionally, the transceiver unit 1101 is configured to support the first electronic device 1100 to execute Figure 8 S802, S806, S807, S808 in; and / or, supporting the first electronic device 1100 to execute Figure 9 S901, S902, S904 in; and / or, supporting the first electronic device 1100 to execute Figure 10 S1002 and S1003 in .

[0216] Optionally, the processing unit 1102 is configured to support the first electronic device 1100 in executing Figure 8 S802, S807; and / or, supporting the first electronic device 1100 to execute Figure 9S903 in; and / or, supporting the first electronic device 1100 to execute Figure 10 S1002 and S1003 in .

[0217] Among them, the transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the first electronic device 1100 are respectively to implement the corresponding process of the login method in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.

[0218] Optionally, Figure 11 The first electronic device 1100 shown may further include a display unit ( Figure 11 (not shown), the display unit can display the interface of the first application. Optionally, Figure 11 The first electronic device 1100 shown may further include a storage unit ( Figure 11 (not shown), the storage unit stores a program or instruction. When the transceiver unit 1101 and the processing unit 1102 execute the program or instruction, Figure 11 The first electronic device 1100 shown can execute the login method in the above method embodiment.

[0219] Figure 11 The technical effects of the first electronic device 1100 shown can refer to the technical effects of the login method in the above method embodiment, and will not be repeated here. In addition to the form of the first electronic device 1100, the technical solution provided in this application can also be a functional unit or chip in the first electronic device, or a device used in conjunction with the first electronic device.

[0220] In one possible design, Figure 12 This is a schematic diagram of the structure of the second electronic device provided in the embodiment of the present application. Figure 12 As shown, the second electronic device 1200 may include: a transceiver unit 1201 and a processing unit 1202. The second electronic device 1200 may be used to implement the functions of the second electronic device involved in the above method embodiment.

[0221] Optionally, the transceiver unit 1201 is configured to support the second electronic device 1200 to execute Figure 6 S601-S603 in; and / or, supporting the second electronic device 1200 to execute Figure 8 S802, S804, S805, S806; and / or, supporting the second electronic device 1200 to execute Figure 9 S901-S904 in; and / or, supporting the second electronic device 1200 to execute Figure 10S1001 and S1003 in the .

[0222] Optionally, the processing unit 1202 is configured to support the second electronic device 1200 in executing Figure 6 S602 in; and / or, supporting the second electronic device 1200 to execute Figure 8 S803, S804, S806; and / or, supporting the second electronic device 1200 to execute Figure 9 S902 in; and / or, supporting the second electronic device 1200 to execute Figure 10 S1001 in.

[0223] The transceiver unit may include a receiving unit and a sending unit, and may be implemented by a transceiver or a transceiver-related circuit component, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the second electronic device 1200 are respectively to implement the corresponding process of the login method in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.

[0224] Optionally, Figure 12 The second electronic device 1200 shown may further include a display unit ( Figure 12 (not shown), the display unit can display the interface of the first application. Optionally, Figure 12 The second electronic device 1200 shown may further include a storage unit ( Figure 12 (not shown), the storage unit stores a program or instruction. When the transceiver unit 1201 and the processing unit 1202 execute the program or instruction, Figure 12 The second electronic device 1200 shown can execute the login method in the above method embodiment.

[0225] Figure 12 The technical effects of the second electronic device 1200 shown can refer to the technical effects of the login method in the above method embodiment, and will not be repeated here. In addition to the form of the second electronic device 1200, the technical solution provided in this application can also be a functional unit or chip in the second electronic device, or a device used in conjunction with the second electronic device.

[0226] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, and when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0227] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0228] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.

[0229] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0230] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0231] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the above-mentioned related steps to implement the login method in the above-mentioned embodiment.

[0232] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement the login method in the above-mentioned embodiment.

[0233] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is configured to store a computer program. When the computer program is executed by one or more processors, the device performs the login method described in each of the above method embodiments.

[0234] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0235] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0236] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0237] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.

[0238] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0239] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program code.

[0240] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A login method, characterized in that: Applied to electronic equipment, the method includes: receiving a first operation from a user indicating logging into a first application, and sending a first request to a second electronic device, wherein the first request is used to request obtaining credentials of a first account currently logged into the first application for password-free logging into the second electronic device; receiving a first response sent by the second electronic device, wherein the first response carries a password-free login credential; Sending a second request to the server, wherein the second request carries the password-free login credential; A second response sent by the server is received, where the second response is used to indicate that the first application of the electronic device has logged in to the first account.

2. The method according to claim 1, characterized in that The sending a first request to the second electronic device in response to a first operation of the user instructing to log in to the first application includes: receiving the first operation, querying first information of a first application of at least one device corresponding to a preset network address, where the at least one device includes the second electronic device; Acquire the first account according to the first information, where the first information is used to indicate a logged-in account of the first application; The first request is sent to a second electronic device corresponding to the first account.

3. The method according to claim 1, characterized in that The sending a first request to the second electronic device in response to a first operation of the user instructing to log in to the first application includes: receiving the first operation, and querying a shared database corresponding to the first application for first information of the first application, the shared database being used to record synchronization data of the first application between different devices; Acquire the first account according to the first information, where the first information is used to indicate a logged-in account of the first application; The first request is added to the shared database, where the first request includes the electronic device identifier of the second electronic device and the first account number.

4. The method according to claim 2 or 3, characterized in that The acquiring the first account number according to the first information includes: If the logged-in account indicated by the first information includes multiple accounts, display the multiple accounts; According to a second operation of the user, obtaining the first account selected by the user from the multiple accounts; or, In a case where the logged-in accounts indicated by the first information only include the first account, the first account is confirmed.

5. The method according to any one of claims 2 to 4, characterized in that: The first information is also used to indicate that the first application has enabled a password-free login service.

6. The method according to claim 5, characterized in that The preset network address includes an Internet Protocol IP address and a port address of the password-free login service. The IP address is an address included in the local area network to which the electronic device is connected.

7. The method according to any one of claims 2 to 6, characterized in that: The second request also carries second password-free login verification information, which includes the identifier of the second electronic device of the electronic device, the identifier of the electronic device of the second electronic device, and the first account; the second password-free login verification information is used to verify the validity of the password-free login credentials.

8. A login method, characterized in that: Applied to a second electronic device, the method includes: receiving a first request sent by an electronic device; In response to the first request, obtaining a first account currently logged into a first application of the second electronic device; Sending a third request to the server, wherein the third request carries the first account, and the third request is used to request credentials for password-free login to the first account; Receiving the password-free login credentials sent by the server; A first response is sent to the second electronic device, where the first response carries the password-free login credential, and the password-free login credential is used for a first application of the electronic device to log in to the first account without a password.

9. The method according to claim 8, characterized in that The password-free login service of the first application of the second electronic device has been enabled.

10. The method according to claim 8 or 9, characterized in that Before receiving the first request sent by the electronic device, the method further includes: In response to a user operation, logging into the first account of the first application; First information is added to the shared database corresponding to the first application, where the first information is used to indicate the logged-in status of the first application, whether the password-free login service is turned on, the first account, the identifier of the electronic device, and the identifier of the second electronic device.

11. The method according to claim 10, characterized in that The sending a first response to the electronic device, wherein the first response carries the password-free login credential, includes: The first response is added to the shared database, where the first response includes the password-free login credential, the first account, the identifier of the electronic device, and the identifier of the second electronic device.

12. The method according to any one of claims 8 to 11, characterized in that: Before sending the third request to the server, the method further includes: Confirm that the electronic device is a trusted device, where the trusted device includes a device logged into the same system account as the second electronic device, or a device in the same trusted group as the second electronic device.

13. A login system, characterized in that: The system includes an electronic device, a second electronic device and a server; The electronic device is configured to receive a first operation from a user indicating logging into a first application, and send a first request to the second electronic device; The second electronic device is configured to: receiving the first request sent by the electronic device; In response to the first request, obtaining a first account currently logged into the first application; Sending a third request to the server, wherein the third request carries the first account, and the third request is used to request credentials for password-free login to the first account; The server is configured to send a password-free login credential to the second electronic device in response to the third request; The second electronic device is further configured to: Receiving the password-free login credentials sent by the server; Sending a first response to the electronic device, wherein the first response carries the password-free login credential; The electronic device is further used for: receiving a first response sent by the second electronic device; Sending a second request to the server, wherein the second request carries the password-free login credential; The server is further configured to, in response to the second request, enable the first application of the electronic device to log in to the first account, and send a second response to the electronic device; The electronic device is further configured to receive a second response sent by the server.

14. The system according to claim 13, wherein: The electronic device is also used for: receiving the first operation, querying first information of a first application of at least one device corresponding to a preset network address, where the at least one device includes the second electronic device; Acquire the first account according to the first information, where the first information is used to indicate a logged-in account of the first application; The first request is sent to a second electronic device corresponding to the first account.

15. The system according to claim 13, wherein: The second electronic device is further configured to: In response to a user operation, logging into the first account of the first application; Adding first information to the shared database corresponding to the first application, where the first information is used to indicate the logged-in status of the first application, whether the password-free login service is enabled, the first account, the identifier of the electronic device, and the identifier of the second electronic device; The electronic device is also used for: receiving the first operation, and querying a shared database corresponding to the first application for first information of the first application, the shared database being used to record synchronization data of the first application between different devices; Acquire the first account according to the first information, where the first information is used to indicate a logged-in account of the first application; adding the first request to the shared database, where the first request includes an electronic device identifier of the second electronic device and the first account number; The second electronic device is further configured to: The first response is added to the shared database, where the first response includes the password-free login credential, the first account, the identifier of the electronic device, and the identifier of the second electronic device.

16. An electronic device, characterized in that: include: A processor, a memory and a display screen, wherein the memory and the display screen are coupled to the processor, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the login method according to any one of claims 1 to 7, and / or the login method according to any one of claims 8 to 12.

17. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a computer program, and when the computer program is run on an electronic device, the electronic device executes the login method according to any one of claims 1 to 7 and / or the login method according to any one of claims 8 to 12.

18. A computer program product, characterized in that When the computer program product is run on a computer, the computer is enabled to execute the login method according to any one of claims 1 to 7 and / or the login method according to any one of claims 8 to 12.

Citation Information

Patent Citations

  • Stand-in authorization method and electronic equipment

    CN104348687A

  • Terminal equipment and login control method of terminal equipment

    CN113965350A

  • Data synchronization method and device, terminal and storage medium

    CN114138908A

  • Application program login method and device, terminal and computer readable storage medium

    CN115189891A

  • User login method and electronic equipment

    CN117131481A