Login method and electronic device
By interacting with the server through electronic devices to obtain and display accounts from multiple platforms, the problem of complex logins across different platforms is solved, thus simplifying the login process and improving the user experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2026-04-02
AI Technical Summary
In existing technologies, users need to be redirected to multiple login pages when logging in across different platforms, which complicates the login process and negatively impacts user experience.
By interacting with the first server through electronic devices, the system obtains and displays the user's accounts registered on multiple platforms. Without being redirected to the login page of the corresponding platform, the user can directly select the target account to log in.
The page redirection process has been simplified, reducing the probability of users forgetting their accounts and improving login efficiency and user experience.
Smart Images

Figure CN2025103927_02042026_PF_FP_ABST
Abstract
Description
Login method and electronic device
[0001] The present application claims priority to the Chinese patent application No. 202411397102.1, filed on September 30, 2024, and entitled "A login method and electronic device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminal, and in particular to a login method and electronic device. BACKGROUND
[0003] At present, when a user logs in to a certain platform, the platform can provide a login interface for the user, and the login interface can also display login entrances of a plurality of third-party platforms. The user can manually select a login entrance of a third-party platform, and after selection, the login interface of the platform jumps to the login interface corresponding to the third-party platform selected by the user, and the user needs to complete login on the login interface of the third-party platform, thereby achieving the purpose of logging in to the platform using the account of the third-party platform.
[0004] However, the above login method can log in to the platform using the account of the third-party platform, but it makes the user feel that the login process is too complex, thereby affecting the user experience. SUMMARY
[0005] The present application provides a login method and electronic device, which can obtain the account registered by the corresponding platform without jumping to the login page of the corresponding platform, realize the function of obtaining one of the accounts registered in at least one platform for login, simplify the page jump process, and improve the user experience.
[0006] To achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
[0007] In a first aspect, a login method is provided, applied to an electronic device. In the login method, first, the electronic device sends a first message to a first server in response to a first operation of a user, then the electronic device receives a second message returned by the first server, secondly, the electronic device displays at least one account, thereafter, the electronic device obtains a target account in the at least one account, and finally, the electronic device performs login processing according to the target account.
[0008] The first message is used to obtain the account registered by the user in at least one platform.
[0009] The second message includes at least one account, and the account is the account registered by the user in at least one platform.
[0010] Exemplarily, the first server can be any one of a proxy server, a local server, a network server, an application server, a cloud server, or the like.
[0011] In the login method, the account of the corresponding platform can be obtained without jumping to the login page of the corresponding platform, and the account of each platform corresponding to the first message can be obtained and displayed through the first message for the user to select, which not only simplifies the page jump process, but also reduces the probability of the user forgetting the account of each platform, meets the login needs of different users, and improves the login experience of the user.
[0012] In an implementation form of the first aspect, the first message includes a first account, and the first account is used by the first server to obtain the account registered by the user in at least one platform in association with the first account.
[0013] Exemplarily, the first message can be a request for obtaining the account registered in at least one platform, the first account can be used by the first server to obtain the account registered in the third-party platform, or can be used by the first server to obtain the account of the platform, and the first account can be any one of a mobile phone number, an identity card number, an email, or an account identifier. It can be seen that the electronic device can obtain the account registered by the user in each platform, meet the login needs of different users, and improve the experience of the user.
[0014] In an implementation form of the first aspect, when the electronic device performs login processing according to the target account, first, the electronic device sends a third message including the target account and the login credential of the target account to the first server in response to a second operation of the user, then the electronic device receives a verification result sent by the first server according to the third message, and finally, in the case that the login credential is verified successfully, the electronic device displays first information for prompting the user that the login is successful. It can be seen that the electronic device does not need to jump to the login page of the corresponding platform to obtain the login credential input by the user, which further simplifies the page jump process and improves the user experience.
[0015] In an implementation form of the first aspect, each account of the at least one account includes account information, and when the electronic device displays the at least one account, the electronic device displays the at least one account and the account information corresponding to each account. The account information includes an avatar of the account and platform information of the platform corresponding to the account. It can be seen that by displaying the avatar and the platform information of each account, it is helpful for the user to quickly determine the account of the corresponding platform, and improves the speed of the user selecting the target account for login.
[0016] In an implementation form of the first aspect, the electronic device acquires the target account in the at least one account in response to the user selecting the target account in the at least one account. Thus, the user can directly select the target account in each account corresponding to the first message, so as to quickly learn the accounts of each platform available for login, and improve the user experience.
[0017] In an implementation form of the first aspect, the electronic device displays the second account and a first control for switching accounts when displaying the at least one account, and then displays other accounts in the at least one account except the second account in response to the user clicking the first control. The second account is the account that the user logged in last time. Thus, the electronic device can display the second account that the user logged in last time and the first control for switching accounts, so as to enable the user to directly use the account logged in last time to log in, improve the efficiency of user login, and display other accounts available for login in response to the user clicking the first control, so as to meet the login needs of different users and improve the login experience of the user.
[0018] In an implementation form of the first aspect, the electronic device further receives a hash value of the first message sent by the first server, and determines the second account from the at least one account according to the hash value of the first message. Thus, the second account can be determined according to the hash value of the first message, so as to improve the accuracy of determining the second account, record the account that the user logged in last time, facilitate the user to use the same account to log in next time, reduce the process of selecting the account again, and improve the convenience of user login next time.
[0019] In an implementation form of the first aspect, the target account is the second account, or is an account selected by the user from the other accounts. Thus, multiple login modes are provided for the user to select, so as to meet the login needs of different users and improve the user experience.
[0020] In a second aspect, another login method is provided and applied to the first server. In the login method, the first server first acquires a first message sent by an electronic device, then acquires accounts registered by a user in at least one platform according to the first message, and finally sends a second message to the electronic device. The second message includes at least one account, and the account is registered by the user in the at least one platform.
[0021] In the login method, the first server obtains the account registered by the user on the at least one platform without jumping to the login page of the corresponding platform to obtain the account registered by the user on the corresponding platform, simplifies the page jump process, improves the account obtaining speed of each platform, and sends the accounts registered by the user on each platform to the electronic device for the user to select, meets the login needs of different users, and improves the user experience.
[0022] In an implementation form of the second aspect, the first message includes a first account, and when the first server obtains the account registered by the user on the at least one platform, the first server obtains the account registered by the user on the at least one platform according to the first account. It can be seen that the first server can obtain the account registered by the user on each platform according to the first account, meet the login needs of different users, and improve the user experience.
[0023] In an implementation form of the second aspect, the first server further receives a third message sent by the electronic device, then sends the third message to the server of the platform corresponding to the target account, receives a verification result sent by the server of the platform corresponding to the target account according to the third message, and finally sends the verification result to the electronic device. The third message includes the target account and a login credential of the target account, the at least one account includes the target account, the verification result is used to indicate whether the login credential of the target account is verified successfully, and the verification result is also used to indicate that the electronic device displays first information in the case that the login credential is verified successfully, and the first information is used to prompt the user that the login is successful. It can be seen that the first server interacts with the server of the platform corresponding to the target account to verify the login credential of the target account, and improves the security of the login of the target account.
[0024] In an implementation form of the second aspect, the first server is configured with an access address of a first interface and an access address of a second interface of each server of the at least one platform. The access address of the first interface is used for the first server to obtain the account from the server of the corresponding platform according to the first message, and the access address of the second interface is used for the first server to obtain the verification result of the login credential from the server of the corresponding platform according to the target account and the login credential of the target account. It can be seen that the access addresses of the first interfaces and the second interfaces of each platform configured by the first server omit the step of jumping to the corresponding platform, realize the function of quickly logging in using the account of other platforms on the platform, and improve the user experience.
[0025] In an implementation form of the second aspect, each of the at least one account comprises account information, and the account information comprises a head portrait of the account and platform information of a platform corresponding to the account. Thus, the first server sends the account information to the electronic device, thereby reducing the number of interactions between the first server and the electronic device, and improving the login efficiency of the user.
[0026] In an implementation form of the second aspect, the first server further determines a hash value of the first message, and then sends the hash value of the first message to the electronic device. The hash value of the first message is used by the electronic device to determine the account in which the user logged in last time. Thus, by determining the hash value of the first message, the electronic device can determine the account in which the user logged in last time, and ensure the uniqueness of the account in which the user logged in last time.
[0027] In a third aspect, an electronic device is provided, which comprises a memory and one or more processors; the memory is coupled to the processors; the memory stores computer program codes, which comprise computer instructions, and when the computer instructions are executed by the processors, the electronic device performs the login method in the first aspect and any implementation form thereof, or performs the login method in the second aspect and any implementation form thereof.
[0028] In a fourth aspect, a computer readable storage medium is provided, which comprises computer instructions, and when the computer instructions are run on an electronic device, the electronic device performs the login method in the first aspect and any implementation form thereof, or performs the login method in the second aspect and any implementation form thereof.
[0029] In a fifth aspect, a computer program product is provided, and when the computer program product is run on an electronic device, the electronic device performs the login method in the first aspect and any implementation form thereof, or performs the login method in the second aspect and any implementation form thereof.
[0030] The electronic device provided in the third aspect, the computer readable storage medium provided in the fourth aspect, and the computer program product provided in the fifth aspect can achieve the beneficial effects as described with reference to the first aspect, the second aspect and any implementation form thereof, and thus repeated details are not described herein. BRIEF DESCRIPTION OF DRAWINGS
[0031] FIG. 1 shows one of the flowcharts of the cross-platform login in the prior art according to an embodiment of the present application;
[0032] FIG. 2 shows another of the flowcharts of the cross-platform login in the prior art according to an embodiment of the present application;
[0033] FIG. 3 shows a hardware structure diagram of an electronic device according to an embodiment of the present application;
[0034] FIG. 4 shows a software structure diagram of an electronic device according to an embodiment of the present application;
[0035] FIG. 5 shows a flowchart of a login method according to an embodiment of the present application;
[0036] FIG. 6 shows a schematic diagram of a login page according to an embodiment of the present application;
[0037] FIG. 7 shows a flowchart of a login method according to another embodiment of the present application;
[0038] FIG. 8 shows a schematic diagram of a login page according to another embodiment of the present application;
[0039] FIG. 9 shows a schematic diagram of a login page according to another embodiment of the present application;
[0040] FIG. 10 shows a flowchart of a login method according to another embodiment of the present application;
[0041] FIG. 11 shows a schematic diagram of a login page according to another embodiment of the present application;
[0042] FIG. 12 shows a schematic diagram of a login page according to another embodiment of the present application;
[0043] FIG. 13 shows a schematic diagram of a login page according to another embodiment of the present application;
[0044] FIG. 14 shows a hardware structure diagram of another electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0045] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the present application, unless otherwise specified, " / " represents an "or" relationship between the objects before and after the " / ", for example, A / B can represent A or B; in the present application, "and / or" is only a description of the relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or similar expressions means any combination of the items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, "first", "second", and the like are used to distinguish the same or similar items with the same function and effect. Those skilled in the art can understand that "first", "second", and the like do not limit the quantity and execution order, and "first", "second", and the like do not necessarily mean different. At the same time, in the embodiments of the present application, "exemplary" or "for example" means to serve as an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, "exemplary" or "for example" is intended to present the relevant concept in a specific manner, and to facilitate understanding.
[0046] In addition, the business scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that with the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
[0047] The login function can be provided by an application on the terminal device or by a website in a browser on the terminal device. When the platform provides the login function, in order to attract more users of other platforms, the login page of the platform generally displays login portals of multiple third-party platforms. A user can manually click to select one of the third-party platforms. At this time, the user needs to jump from the login page of the platform to the login page of the selected third-party platform, log in according to an agreed protocol such as a security assertion markup language (SAML) protocol or an open authorization (OAuth) protocol, and complete the account login of the third-party platform. After the account login of the third-party platform is completed, the server of the third-party platform issues a login success credential to the server of the platform. The server of the platform parses the login credential to complete the login. Subsequently, the server of the platform can issue a business uniform identity authentication information to an application to implement a business function corresponding to the user.
[0048] For example, as shown in FIG. 1, the third-party platforms join the platform pool corresponding to the platform in a signed manner. The third-party platforms that join the platform pool are regarded as loginable platforms in the platform pool. An account verification relationship is established between the proxy server corresponding to the platform pool and each loginable platform in the platform pool. One platform pool includes at least one loginable platform, and one platform pool corresponds to one proxy server. As shown in FIG. 2, the account verification operations of multiple third-party platforms are centrally processed through the proxy server. A user initiates an account verification request to different platforms. After the account verification request is received by a loginable platform, the loginable platform determines a corresponding proxy server according to the account verification relationship, and transmits the account verification request to the proxy server. The proxy server determines an account verification manner for processing the account verification request according to the account verification request and a user terminal that has been used for account verification of the same user account. The account verification of the user account is completed according to the corresponding account verification manner. However, the above-mentioned login method of the platform needs to configure and maintain the mapping relationship of the proxy server signed with each third-party platform in advance. When the user logs in and verifies, the third-party platform needs to be accessed first, and then the request is forwarded to the proxy service. The login process is relatively complex. From the user experience, the login of different third-party platforms on the login interface affects the user's visual perception.
[0049] Therefore, the embodiment of the present application provides a login method, which is applied to an electronic device. First, the electronic device displays at least one account in response to a first operation of a user. The account is an account registered by the user on at least one platform. Then, the electronic device acquires a target account from the at least one account for login processing. The account registered by the user on at least one platform can be acquired without jumping to a login page of a corresponding platform, the function that the account registered by the user on each platform needs to be logged in to the account registered by the user on one platform is realized, and the use experience of the user is improved.
[0050] In some embodiments, the method provided by the embodiment of the present application is applied to an electronic device. First, the electronic device sends a first message to a first server in response to a first operation of a user. Second, the electronic device receives a second message returned by the first server. Third, the electronic device displays at least one account. Fourth, the electronic device acquires a target account from the at least one account. Finally, the electronic device performs login processing according to the target account.
[0051] For example, the first message can be a request including a mobile phone number of the user or an identity document (ID) of the user, and the first message is used to request the first server to acquire the account registered by the user on at least one platform.
[0052] For example, the first message can be a request including a mobile phone number of the user or an identity document (ID) of the user, and the first message is used to request the first server to acquire the account registered by the user on at least one platform.
[0053] For example, the at least one account displayed by the electronic device is an account after desensitization, so as to protect the privacy of the user.
[0054] In the above method, the account registered by the user on each platform is displayed through the first message, so that the target account is acquired from the at least one account for login, without jumping to the corresponding platform for login, and the use experience of the user is improved.
[0055] The above login method provided by the embodiment of the present application can be applied to an electronic device.
[0056] In some embodiments, as shown in FIG. 3, the electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
[0057] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0058] The processor 110 can include one or more processing units (not shown in FIG. 3), for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0059] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching instructions and executing instructions.
[0060] In some possible implementations, the controller can specifically control the electronic device 100 to send a first message to a first server in response to a first operation of a user, control the electronic device 100 to receive a second message returned by the first server, and display at least one account included in the second message, control the electronic device 100 to obtain a target account in the at least one account, and perform login processing according to the target account.
[0061] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instructions or data again, it can be directly called from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thereby improving the efficiency of the system.
[0062] In some embodiments, the processor 110 can include one or more interfaces (not shown in FIG. 3). For example, the USB interface 130 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0063] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger.
[0064] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160, etc.
[0065] The wireless communication function of the electronic device 100 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0066] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves radiated through the antenna 1.
[0067] The wireless communication module 160 can provide a solution for wireless communication, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.
[0068] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology.
[0069] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel.
[0070] In some possible implementations, the electronic device 100 can display at least one account through the display screen 194, can display a second account through the display screen 194, and can display a first control for switching accounts through the display screen 194, the second account being an account that the user logged in last time among the at least one account, can display other accounts in the at least one account except the second account through the display screen 194, and can display the at least one account and account information corresponding to each account through the display screen 194; the account information includes an avatar of the account and platform information of a platform corresponding to the account, and can display first information through the display screen 194, the first information being used to prompt the user that the login is successful.
[0071] It can be understood that the display screen 194 mentioned herein can be used as a screen in the following embodiments.
[0072] The electronic device 100 can implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display 194, and an application processor, etc.
[0073] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture a still image or a video.
[0074] The digital signal processor is used to process a digital signal, which can process not only a digital image signal but also other digital signals. The video codec is used to compress or decompress a digital video. The NPU is a neural-network (NN) calculation processor, which can quickly process input information by referring to a biological neural network structure, for example, by referring to a transmission mode between human brain neurons, and can also constantly self-learn. Through the NPU, the electronic device 100 can implement intelligent cognition applications such as image recognition, voice recognition, text understanding, etc.
[0075] The external memory interface 120 can be used to connect an external memory card, for example, a Micro SD card, to implement the expansion of the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
[0076] In some possible implementation manners, the electronic device 100 can store the hash value of the first message and the target account on the external memory card, and the hash value of the first message and the target account are used to determine the second account when the user logs in next time.
[0077] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various function applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc. The data storage area can store data (such as audio data, a phone book, etc.) created during use of the electronic device 100, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0078] In some possible implementation manners, the electronic device 100 can also store the hash value of the first message and the target account on the internal memory 121.
[0079] The electronic device 100 can implement an audio function through the audio module 170 and an application processor, etc. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode an audio signal.
[0080] The keys 190 include a power-on key, a volume key, etc. The keys 190 can be mechanical keys. They can also be touch keys. The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and can also be used to indicate a message, a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card.
[0081] Based on the electronic device shown in FIG. 3, the login method in the embodiment of the present application can obtain the account registered by the corresponding platform without jumping to the corresponding platform, realize the function of selecting one of the accounts registered by the user in each platform to log in, and improve the user experience.
[0082] In some embodiments, as shown in FIG. 4, the electronic device 100 can also adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes the android system with a layered architecture as an example to exemplarily illustrate the software structure of the electronic device 100.
[0083] As shown in FIG. 4, the layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into four layers, from top to bottom, an application layer, an application framework layer, a system service layer, and a kernel layer.
[0084] The application layer can include a series of application packages.
[0085] As shown in FIG. 4, the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0086] The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the application of the application layer. The application framework layer includes some pre-defined functions.
[0087] As shown in FIG. 4, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, etc.
[0088] The view system includes visual controls, such as controls that display text, controls that display pictures, and the like. The view system can be used to build an application. The display interface can be composed of one or more views.
[0089] The system services layer can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (e.g., OpenGL ES), a two-dimensional graphics engine (e.g., SGL), and the like.
[0090] In some possible implementation manners, the system services layer can further include a login module. The login module is configured to, in response to a first operation of a user, send a first message to a first server, receive a second message returned by the first server, display at least one account included in the second message, obtain a target account from the at least one account, and perform a login process according to the target account.
[0091] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0092] In some possible implementation manners, the display driver is configured to drive a display screen of the electronic device to display the at least one account corresponding to the first message.
[0093] Based on the electronic device shown in FIG. 4, the login method in the embodiments of the present application can obtain the account registered by the user on the corresponding platform without jumping to the corresponding platform, implement the function of selecting one of the accounts registered by the user on the platforms to log in, and improve the user experience.
[0094] The electronic device can be a terminal device such as a mobile phone, a tablet computer, a wearable device (such as a smart watch, a smart bracelet, and the like), a smart furniture device (such as a television, and the like), and a vehicle machine (such as a vehicle terminal). The mobile phone can be a foldable screen mobile phone or a non-foldable screen mobile phone.
[0095] The following describes the login method provided in the embodiments of the present application by taking the electronic device as a mobile phone.
[0096] Before the mobile phone executes the login method, the first server that interacts with the mobile phone needs to be configured, so as to facilitate the first server to interact with at least one platform.
[0097] In some embodiments, the first server is configured with an access address of a first interface and an access address of a second interface of each platform server of the at least one platform server, the access address of the first interface being used by the first server to obtain an account from the corresponding platform server according to the first message, and the access address of the second interface being used by the first server to obtain a verification result of a login credential from the corresponding platform server according to the target account and the login credential of the target account.
[0098] For example, the first message can be a request including a user's mobile phone number or a user's account identity (ID), and the first message is used to request the first server to obtain an account registered by the user in the at least one platform.
[0099] For example, the first message includes a first account, and the first account is used by the first server to obtain an account registered by a user associated with the first account in the at least one platform, the platform can be a platform to be logged in by the user, or can be a third-party platform, one user can correspond to multiple first accounts, and one first account corresponds to one user, for example, the first account can be a mobile phone number, an ID card number, or any one of a mailbox or an account ID.
[0100] For example, the account can be a user-named account nickname, a platform-generated account ID, or the first message.
[0101] For example, the access address of the first interface is also used by the first server to obtain account information of the account from the corresponding platform server according to the first message, and the account information includes an avatar of the account and platform information of the platform corresponding to the account.
[0102] For example, the target account is an account currently logged in by the user in the at least one account, and the login credential of the target account is used to determine whether the target account is successfully logged in, and the login credential can be a password or a verification code.
[0103] For example, when the first server is configured with the access address of the first interface and the access address of the second interface, a unified interface specification of an interface (the first interface) for detecting whether there is a registered account of a user in each platform of the at least one platform and an interface (the second interface) for verifying a login credential needs to be defined by a platform to be logged in by the user, for example, the interface specification of the first interface of the third-party platform is shown in Table 1 below, and the interface specification of the second interface is shown in Table 2 below.
[0104] Table 1-Interface specification table of the first interface
[0105] Table 2-Interface specification table of the second interface
[0106] For example, the development team of the third-party platform implements the first interface and the second interface according to the interface specification described above, and publishes the first interface and the second interface to the server of the third-party platform, and provides the access address of the first interface on the server of the third-party platform and the access address of the second interface on the server of the third-party platform to the first server for configuration. For example, the access address of the first interface and the access address of the second interface of the server of the third-party platform A provided are as shown in Table 3.
[0107] Table 3-Interface access address table of the server of the third-party platform A
[0108] For example, the configuration information of the first server is as shown in Table 4. The third-party platform A (ThirdAccountType-A) is newly added, and the third-party platform B (ThirdAccountType-B) and the third-party platform C (ThirdAccountType-C) are other third-party platforms configured before. The interface configuration information of the other third-party platforms is similar to that of the third-party platform A, and is not described herein.
[0109] Table 4-Configuration information table of the first server
[0110] It can be seen that by configuring the access address of the first interface of the server of each platform on the first server, the first server can obtain the response of whether the corresponding platform exists a user-registered account from the server of each platform, so as to determine that the corresponding platform exists a user-registered account according to the isExist attribute in the response. By configuring the access address of the second interface of the server of each platform on the first server, the first server can call the server of the target account corresponding to the platform to verify the login credential of the target account, thereby realizing the interaction between the first server and the server of each platform.
[0111] After the first server is configured with the above content, referring to FIG. 5, the above login method can include the following steps S501-S506.
[0112] S501, the mobile phone sends a first message to the first server in response to a first operation of the user.
[0113] Correspondingly, the first server receives the first message sent by the mobile phone.
[0114] The first message is used to obtain the account registered by the user on at least one platform. The platform can be the platform to be logged in, or a third-party platform associated with the platform to be logged in.
[0115] The first message can be a request including the first account of the user. The first account is used by the first server to obtain the account registered by the user on at least one platform according to the first account. One user can correspond to multiple first accounts, and one first account corresponds to one user. The first account is a string composed of multiple characters, which can be any one of numbers, letters, and symbols. For example, the first account can be a mobile phone number, an ID card number, an email, or an account ID.
[0116] The first operation of the user can be an operation of clicking a blank place on the login page after the user inputs the first account, or an operation of clicking an input box of the login credential on the login page after the user inputs the first account. For example, as shown in FIG. 6, when the user uses a business service of a mobile phone using a business platform, the user opens a login page of the business platform, inputs a mobile phone number 12345678900 in an input box of the first account, and clicks an input box of the login credential after the user finishes inputting. The mobile phone detects that the user clicks the input box of the login credential, and initiates a request (the first message) for detecting the mobile phone number 12345678900 to the first server.
[0117] S502, the first server obtains the account registered by the user on at least one platform according to the first message.
[0118] The account can be an account nickname named by the user, an account ID generated by a third-party platform, or the first account included in the first message.
[0119] The platform can be any one of a music platform, a game platform, a chat platform, a video platform, a news platform, a shopping platform, a learning platform, a social media platform, or an authentication system provided by a company. The user can register an account on each platform using the first account, for example, the platform to be logged in is a shopping platform, the user has accounts (for example, account IDs corresponding to the platforms) registered using the first account (for example, a mobile phone number) in a chat platform, a social media platform, and an authentication system provided by company A. The first server can obtain the account of the chat platform, the account of the social media platform, and the account in the authentication system provided by company A through the first account. In this way, the user can log in to the shopping platform using the account of the chat platform, or using the account of the social media platform, or using the account in the authentication system provided by company A.
[0120] In some embodiments, the first server sends the first message to the server of the platform corresponding to the first interface according to the access address of the first interface corresponding to each server of the at least one platform configured by the first server. After receiving the first message sent by the first server, each server of the platform corresponding to the first interface queries whether the first account included in the first message exists in the corresponding database. If the first account exists, the server sends a response that the first account exists to the first server. The response that the first account exists includes the account of the first account in the corresponding platform. The response that the first account exists can also include the account information (such as the avatar and the platform information of the corresponding platform) of the account. If the first account does not exist, the server sends a response that the first account does not exist to the first server. The first server screens the account of the platform in which the first account exists according to the responses sent by each server of the platform.
[0121] Exemplarily, as shown in FIG. 7, after receiving the detection request (first message) of the mobile phone number 12345678900 sent by the mobile phone, the first server reads the information (SupportThirdAccounts) of the third-party platforms supported by the to-be-logged-in platform in the first server configuration information, determines the third-party platforms supported by the to-be-logged-in platform, and if the third-party platforms supported by the to-be-logged-in platform are the third-party platform A (ThirdAccountType-A), the third-party platform B (ThirdAccountType-B) and the third-party platform C (ThirdAccountType-C), the first server sends a request to query whether the mobile phone number 12345678900 exists to the servers of the three third-party platforms according to the access addresses of the first interfaces of the servers of the three third-party platforms in the configuration information. The servers of the three third-party platforms receive the request sent by the first server to query whether the mobile phone number 12345678900 exists, query the mobile phone number in the respective corresponding databases, if the mobile phone number is queried, send a response corresponding to the mobile phone number to the first server, the response including that the third-party platform exists the mobile phone number (isExist: true), the nickname of the third-party account (nickName: xxx), the platform information (accountTitle: 'xxx') and the avatar address (avatarUrl: 'xxx'), if the mobile phone number is not queried, send a response corresponding to the mobile phone number to the first server, the response including that the third-party platform does not exist the mobile phone number (isExist: false) and the platform information (accountTitle: 'xxx'), if the server of the third-party platform A and the server of the third-party platform B send responses that the mobile phone number exists to the first server respectively, and the server of the third-party platform C sends a response that the mobile phone number does not exist to the first server, after receiving the responses sent by the servers of the three third-party platforms, the first server screens the third-party accounts of the third-party platforms (the third-party platform A and the third-party platform B) that exist the mobile phone number.
[0122] It can be seen that the first server can interact with the server of each platform, screen the account registered by the user in at least one platform, facilitate the user to view all the platform-registered accounts that can be used to log in to the platform on the login page of the to-be-logged-in platform in the future, increase the login options of the user, and improve the use experience of the user.
[0123] S503, the first server sends a second message to the mobile phone.
[0124] Correspondingly, the mobile phone receives the second message returned by the first server.
[0125] The second message includes at least one account, and the account is an account registered by the user in at least one platform.
[0126] For example, the second message further includes account information of each of the at least one account, the account information including an avatar of the account and platform information of a platform corresponding to the account.
[0127] For example, when the first account included in the first message is a mobile phone number of the user, and there are a third-party platform A and a third-party platform B for the mobile phone number, the first server sends to the mobile phone a nickname (nickName: aa***aa) of a third-party account corresponding to the third-party platform A, an avatar address (avatarUrl: 'https: / / www.xxxA.com / Aa.png') of the third-party account, and platform information (accountTitle: third-party platform A) of the third-party platform A, and a nickname (nickName: bb***bb) of a third-party account corresponding to the third-party platform B, an avatar address (avatarUrl: 'https: / / www.xxxB.com / Bb.png') of the third-party account, and platform information (accountTitle: third-party platform B) of the third-party platform B.
[0128] S504, the mobile phone displays the at least one account.
[0129] In some embodiments, each of the at least one account includes account information, and the mobile phone displays the at least one account and the account information corresponding to each of the at least one account when displaying the at least one account.
[0130] The account information includes an avatar of the account and platform information of a platform corresponding to the account.
[0131] For example, the mobile phone receives the response (second message) sent by the first server, and when the mobile phone determines that there are multiple accounts, the login page of the mobile phone displays the multiple accounts in a list for the user to select. As shown in FIG. 8, the login page of the mobile phone displays two accounts, specifically, an avatar and a nickname (aa***aa) of a third-party account of the third-party platform A, and an avatar and a nickname (bb***bb) of a third-party account of the third-party platform B.
[0132] Exemplarily, during the process that the user inputs the first account, the mobile phone can also detect the content input by the user in the input box of the first account in real time, and send the detected content in the input box of the first account to the first server, the content being the first part of the content of the first account, for example, the first 5 digits of the mobile phone number or the first 8 digits of the mobile phone number. The first server can first send the detected first part of the content to the server of each platform, and each platform server sends the account corresponding to the information containing the first part of the content in the corresponding database to the first server. The first server sends the account corresponding to the first part of the content to the mobile phone, and the mobile phone displays the account corresponding to the first part of the content, for example, during the process that the user inputs the mobile phone number, the login interface can display the account corresponding to the input mobile phone number in real time, so as to improve the efficiency of the user selecting the account for login.
[0133] It can be seen that the user can see all the platform-registered accounts for logging into the platform, the corresponding avatars and platform information on the mobile phone, which improves the richness of the user selecting the login account, meets the login needs of different users, and improves the user experience.
[0134] S505, the mobile phone acquires a target account in the at least one account.
[0135] In some embodiments, the mobile phone can acquire the target account in response to the operation of the user selecting the target account in the at least one account.
[0136] Exemplarily, as shown in FIG. 8, the user selects the target account by clicking the control where the third-party account (bb***bb) of the third-party platform B is located in the displayed third-party account (aa***aa) of the third-party platform A and the third-party account (bb***bb) of the third-party platform B in the drop-down list. At this time, the target account selected by the user is bb***bb.
[0137] It can be seen that the user can select the account for login in the displayed multiple accounts, without the need to jump to the corresponding platform to see the account information of the corresponding account, thereby improving the user experience.
[0138] In other embodiments, the mobile phone can also determine the account logged in by the user last time as the target account, thereby reducing the operation of the user selecting, and improving the convenience of login.
[0139] S506, the mobile phone performs login processing according to the target account.
[0140] In some embodiments, when the mobile phone performs the login process according to the target account, first, the mobile phone can send a third message to the first server in response to a second operation of the user, the third message including the target account and the login credential of the target account, the first server receiving the third message sent by the mobile phone, the first server sending the third message to the server of the platform corresponding to the target account, the first server receiving the check result sent by the server of the platform corresponding to the target account according to the third message, the first server sending the check result to the mobile phone, the mobile phone receiving the check result sent by the first server according to the third message, and finally, in the case that the login credential is verified successfully, the mobile phone displays first information.
[0141] The check result is used to indicate whether the login credential of the target account is verified successfully, and the check result is also used to indicate that the mobile phone displays the first information in the case that the login credential is verified successfully, and the first information is used to prompt the user that the login is successful.
[0142] For example, the login credential can be a password corresponding to the target account, or can be a verification code, such as an email verification code or an SMS verification code.
[0143] For example, as shown in FIG. 9, the user clicks to select the account bb***bb under the third-party platform B, and the login page will retract the drop-down list, the user can continue to input the password in the input box of the login credential, the user inputs the password, and then clicks the login control to log in.
[0144] For example, as shown in FIG. 10, in the case that the user clicks the login control, the mobile phone sends the target account bb***bb selected by the user and the password corresponding to the target account bb***bb to the first server. The first server sends the target account bb***bb and the password of the target account bb***bb to the server of the third-party platform B according to the access address of the second interface on the server of the third-party platform B corresponding to bb***bb in the configuration. The server of the third-party platform B receives the target account bb***bb and the password of the target account bb***bb sent by the first server. The server of the third-party platform B obtains the actual password corresponding to the target account bb***bb in the database corresponding to the third-party platform B, and determines whether the actual password is consistent with the password of the target account bb***bb sent by the first server. If the password sent by the first server is consistent with the actual password of the target account bb***bb, the login credential verification of the target account bb***bb is successful, and the server of the third-party platform B sends a response (isSuccess: true) that the login credential verification of the target account bb***bb is successful to the first server. If the password sent by the first server is not consistent with the actual password of the target account bb***bb, the login credential verification of the target account bb***bb fails, and the server of the third-party platform B sends a response (isSuccess: false) that the login credential verification of the target account bb***bb fails to the first server. The first server receives the response of the login credential of the target account bb***bb sent by the server of the third-party platform B, and sends the response of the login credential of the target account bb***bb to the mobile phone. Here, the first server can directly send the response as the verification result to the mobile phone, or the first server receives the response of the login credential of the target account bb***bb sent by the server of the third-party platform B, and determines whether the attribute value of the isSuccess attribute in the response is true. If the attribute value of the isSuccess attribute is true, the first server sends the verification result of the successful verification to the mobile phone. If the attribute value of the isSuccess attribute is false, the first server sends the verification result of the failed verification to the mobile phone. The mobile phone receives the response of the login credential of the target account bb***bb. In the case that the response indicates that the login credential verification of the target account bb***bb is successful (isSuccess: true), or in the case that the mobile phone receives the verification result of the login credential of the target account bb***bb and the verification result indicates that the login credential verification of the target account bb***bb is successful, the mobile phone performs login processing according to the target account, displays first information indicating that the user logs in successfully on the screen of the mobile phone, and allows the user to access subsequent business services. In the case that the response indicates that the login credential verification of the target account bb***bb fails (isSuccess: false), or in the case that the verification result indicates that the login credential verification of the target account bb***bb fails,A pop-up window of password error can be displayed on the screen of the mobile phone to prompt the user to re-enter the correct password.
[0145] As can be seen, the user can select an account from the displayed multiple accounts and input the corresponding password for login. In this way, the user can select the account whose password is remembered for login through the displayed account information, and can know the account information of the account of the corresponding platform without jumping to the corresponding platform, thereby improving the success rate and efficiency of user login and thus improving the user experience.
[0146] The steps S501-S506 implement the login method in the embodiments of the present application. The user can associate to the account registered by the user on at least one platform through the first message, and the account information of the account registered by the user on at least one platform is displayed on the mobile phone for the user to select. The user does not need to jump to the login page of the corresponding platform to fill in the account information of the corresponding account, thereby reducing the steps of the user using the account of the corresponding platform for login. After the user selects the account for login, the corresponding login credential is inputted to complete the login, and the user does not need to jump to the login page of the corresponding platform to fill in the login credential, thereby improving the user experience.
[0147] In some embodiments, if the mobile phone determines the account logged in by the user last time as the target account, the first server needs to determine the hash value of the first message after receiving the first message sent by the mobile phone, and then send the hash value of the first message to the mobile phone.
[0148] For example, when the first server determines the hash value of the first message, the first server can determine the hash value according to the first account in the first message, and the hash value is used by the mobile phone to determine the account logged in by the user last time from the at least one account.
[0149] For example, the first server can send the hash value of the first message to the mobile phone together with the at least one account corresponding to the first message, or send them separately.
[0150] For example, when a user uses a service of a service platform on a mobile phone, the user opens a login page of the service platform on the mobile phone. The login page can also be as shown in FIG. 11, and a default avatar is displayed, and a login control is in a disabled state (not clickable). The user inputs a first account in a first account input box. After the first account is input, the user clicks an input box of a login credential. The mobile phone detects that the user clicks the input box of the login credential, and sends a detection request (a first message) of the first account to a first server. After receiving the first message, the first server calls servers of various platforms according to access addresses of first interfaces of the servers of the various platforms to query the first account, receives responses of the servers of the various platforms to the query of the first account, and determines accounts of the platforms in which the first account exists. In addition, the first server generates a unique hash value for the first account. The hash value is a string composed of multiple numbers and / or letters. The hash value generated each time for the same first account is the same, and the hash values generated for different first accounts are different. The first server sends a response including the accounts of the user registered on at least one platform using the first account and the hash value of the first account to the mobile phone.
[0151] It can be seen that the first server can also send the hash value of the first message to the mobile phone, which is used by the mobile phone to determine a third-party account used by the user to log in to the first service platform last time, and ensures the uniqueness of the third-party account used by the user to log in to the first service platform last time.
[0152] In some embodiments, the mobile phone receives the hash value of the first message sent by the first server, and then determines a second account from the at least one account according to the hash value of the first message.
[0153] The second account is an account logged in by the user last time among the at least one account.
[0154] For example, after the mobile phone receives the response (a first message) of the query of the first account sent by the first server, it is determined that the first message corresponds to multiple accounts. The mobile phone reads an account logged in by the user last time from a local stored login record table according to the hash value of the first message in the response sent by the first server. For example, the login record table is as shown in Table 5.
[0155] Table 5-Login Record Table
[0156] For example, the first message sent by the first server to the mobile phone has a hash value ahoyoenwohoyo, the mobile phone reads the latest logged-in account aa***aa corresponding to the hash value ahoyoenwohoyo in the login record table, and matches the account aa***aa with the nickName of at least one account sent by the first server. If the mobile phone determines that the nickName of the third-party account of the third-party platform A is consistent with the latest logged-in account aa***aa, the third-party account of the third-party platform A is determined as the second account.
[0157] It can be seen that the mobile phone determines the second account from multiple accounts according to the hash value of the first message, and facilitates the user to use the second account to log in according to the user's previous login habits, which can further improve the user's login efficiency and improve the user's use experience.
[0158] In some embodiments, when the mobile phone displays at least one account, the mobile phone can also display the second account, and display a first control for switching accounts. Then, the mobile phone displays other accounts in addition to the second account in response to the user's operation of clicking the first control.
[0159] For example, when the mobile phone determines the second account as the third-party account aa***aa of the third-party platform A, the mobile phone displays a login page as shown in FIG. 12. On the login page, the default avatar is replaced with the avatar of the second account, the content of “account login” is replaced with the nickName aa***aa of the second account, and the first control “switch account” button for switching accounts is displayed. The user can click the login control after inputting the password of the second account aa***aa in the input box of the login credential to log in, or the user can click the first control to switch to other accounts for login.
[0160] It can be seen that the mobile phone can also display the second account and the first control, which facilitates the user to directly use the second account to log in, improves the user's login efficiency, and the mobile phone can also display other accounts by the user clicking the first control, so that the user can select, meet the login needs of different users, and improve the user's login experience.
[0161] In some embodiments, the target account can also be an account selected by the user from other accounts in addition to the second account.
[0162] As shown in FIG. 12, when the user inputs the password of the second account aa***aa and clicks the login control, the target account is the second account. If the user wants to log in using another account, the user can click the first control. The login page displayed on the mobile phone is shown in FIG. 13. The other accounts are displayed in the form of a drop-down list. After the user clicks and selects the third-party account of the third-party platform B, the drop-down list is closed, and the avatar of the second account is replaced with the avatar of the third-party account of the third-party platform B. The nickname aa***aa of the second account is replaced with the nickname bb***bb of the third-party account of the third-party platform B. The target account is the third-party account of the third-party platform B. The user can continue to input the password corresponding to bb***bb. After the password is input, the user clicks the login control. The mobile phone sends the third-party account of the third-party platform B and the password thereof to the first server. The first server sends a verification request for the login credential of the third-party account of the third-party platform B to the server of the third-party platform B through the access address of the second interface of the server of the third-party platform B configured by the first server. After receiving the verification request, the server of the third-party platform B determines whether the password of the third-party account of the third-party platform B is correct by calling the corresponding database. If the password is correct, the server of the third-party platform B sends a response of successful verification to the first server. If the password is incorrect, the server of the third-party platform B sends a response of failed verification to the first server. The first server receives the response of the verification of the login credential sent by the server of the third-party platform B. If the value of the isSuccess attribute in the response is true, the first server sends the verification result of successful verification to the mobile phone. The mobile phone completes the login and updates the third-party account bb***bb of the user this time and the hash value of the first message to the login record table stored locally, for updating the account logged in by the user last time.
[0163] It can be seen that the mobile phone can display the account logged in by the user last time by default, or display other accounts for login through the control for switching accounts, so that the user can switch accounts for login. After the verification of the login credential is successful, the mobile phone can also store the account logged in this time, for displaying the account by default when the user logs in next time, without the user needing to select again, thereby improving the efficiency of the user login.
[0164] It can be understood that, in order to implement the above functions, the foregoing electronic device contains hardware and / or software modules corresponding to each function. The algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered beyond the scope of the present application.
[0165] The embodiments of the present application can divide the function modules of the electronic device according to the above method examples. For example, each function module can be divided according to each function, or two or more functions can be integrated in one processing module. The integrated module can be realized in the form of hardware. It should be noted that the division of the modules in the embodiments is illustrative, and is only a logical function division. In actual implementation, another division manner can be used.
[0166] The embodiments of the present application also provide an electronic device, as shown in FIG. 14, which can include one or more processors 1401, a memory 1402 and a communication interface 1403.
[0167] The memory 1402 and the communication interface 1403 are coupled with the processor 1401. For example, the memory 1402, the communication interface 1403 and the processor 1401 can be coupled together through a bus 1404.
[0168] The communication interface 1403 is configured to perform data transmission with other devices. The memory 1402 stores computer program code. The computer program code includes computer instructions, which, when executed by the processor 1401, causes the electronic device to perform the login method in the embodiments of the present application.
[0169] The processor 1401 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The processor can realize or execute various exemplary logical blocks, modules and circuits described in combination with the present disclosure. The processor can also be a combination realizing computing functions, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0170] The bus 1404 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The bus 1404 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 14, but it does not mean that there is only one bus or only one type of bus.
[0171] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores computer program codes. When the processor executes the computer program codes, the electronic device executes the related method steps in the method embodiment.
[0172] The electronic device and the computer readable storage medium provided by the present application are used to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
[0173] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0174] In several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented by other means. For example, the device embodiment described above is only illustrative, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0175] The units described as separate components can or can not be physically separated, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place or can be distributed to multiple different places. According to actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0176] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.
[0177] When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or the parts that make contributions or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, includes a plurality of instructions for making a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method described in each embodiment of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0178] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A login method characterized by, The method is applied to an electronic device, and the method comprises: In response to a first operation of a user, a first message is sent to a first server; the first message is used to obtain an account registered by the user on at least one platform; A second message returned by the first server is received; the second message comprises at least one account, and the account is an account registered by the user on at least one platform; The at least one account is displayed; A target account in the at least one account is obtained; Login processing is performed according to the target account.
2. The method of claim 1, wherein, The first message comprises a first account, and the first account is used for the first server to obtain an account registered by a user associated with the first account on at least one platform according to the first account.
3. The method according to claim 1 or 2, characterized in that, The login processing according to the target account comprises: In response to a second operation of the user, a third message is sent to the first server; the third message comprises the target account and login credentials of the target account; A verification result sent by the first server according to the third message is received; the verification result is used to indicate whether the login credentials of the target account are verified successfully; In a case where the login credentials are verified successfully, first information is displayed; the first information is used to prompt that the user logs in successfully.
4. The method according to any one of claims 1 to 3, characterized in that, Each account in the at least one account comprises account information; the display of the at least one account comprises: The at least one account and account information corresponding to each account are displayed; the account information comprises a head portrait of the account and platform information of a platform corresponding to the account.
5. The method according to any one of claims 1 to 4, characterized in that, The target account in the at least one account is obtained, comprising: In response to an operation of the user selecting a target account in the at least one account, the target account is obtained.
6. The method according to any one of claims 1 to 4, characterized in that, The display of the at least one account comprises: A second account and a first control for switching accounts are displayed; the second account is an account logged in by the user last time in the at least one account; In response to an operation of the user clicking the first control, other accounts in the at least one account except the second account are displayed.
7. The method of claim 6, wherein, The method further comprises: A hash value of the first message sent by the first server is received; According to the hash value of the first message, the second account is determined from the at least one account.
8. The method according to claim 6 or 7, characterized in that, The target account is the second account, or is an account selected by the user in the other accounts.
9. A login method characterized by, The method is applied to a first server, comprising: A first message sent by an electronic device is obtained; According to the first message, an account registered by a user on at least one platform is obtained; A second message is sent to the electronic device; the second message comprises at least one account, and the account is an account registered by the user on at least one platform.
10. The method of claim 9, wherein, The first message comprises a first account, and the account registered by the user on at least one platform is obtained according to the first account. The first account is used for the first server to obtain an account registered by a user associated with the first account on at least one platform according to the first account.
11. The method according to claim 9 or 10, characterized in that, The method further comprises: A third message sent by the electronic device is received; the third message comprises a target account and login credentials of the target account; and the at least one account comprises the target account. sending the third message to a server of a platform corresponding to the target account; receiving a check result sent by the server of the platform corresponding to the target account according to the third message; the check result is used to indicate whether the login credential of the target account is checked successfully; sending the check result to the electronic device; the check result is also used to instruct the electronic device to display first information in the case that the login credential is checked successfully; the first information is used to prompt the user that the login is successful.
12. The method of claim 11, wherein, The first server is configured with an access address of a first interface and an access address of a second interface corresponding to each server of the at least one platform; the access address of the first interface is used for the first server to obtain an account from the corresponding server of the platform according to the first message; and the access address of the second interface is used for the first server to obtain a check result of the login credential from the corresponding server of the platform according to the target account and the login credential of the target account.
13. The method according to any one of claims 9-12, characterized in that, Each of the at least one account includes account information; the account information includes an avatar of the account and platform information of the platform corresponding to the account.
14. The method according to any one of claims 9 to 13, characterized in that, The method further includes: determining a hash value of the first message; sending the hash value of the first message to the electronic device; the hash value of the first message is used for the electronic device to determine an account that the user logged in last time in the at least one account.
15. An electronic device, comprising: The electronic device includes a memory and one or more processors; the memory is coupled to the processor; the memory stores computer program codes including computer instructions, when the computer instructions are executed by the processor, the electronic device executes the login method according to any one of claims 1-8, or executes the login method according to any one of claims 9-14.
16. A computer readable storage medium characterized by: The computer instructions, when running on the electronic device, make the electronic device execute the login method according to any one of claims 1-8, or execute the login method according to any one of claims 9-14.
17. A computer program product, characterised in that, The computer program product, when running on the electronic device, makes the electronic device execute the login method according to any one of claims 1-8, or execute the login method according to any one of claims 9-14.
Citation Information
Patent Citations
Program page display method and device, computer equipment and readable storage medium
CN112560076A
Account login method and device, equipment, storage medium and program product
CN116305056A
Account management method and device, electronic equipment and storage medium
CN117997618A
Cloud platform login method and device, electronic equipment and storage medium
CN118631478A
Indicating website reputations during user interactions
US20140331119A1