This application claims priority to Chinese Patent Application No. 202210998425.0, filed with the China National Intellectual Property Administration on Aug. 19, 2022 and entitled “ACCOUNT LOGIN METHOD AND ELECTRONIC DEVICE”, which is incorporated herein by reference in its entirety.
This application relates to the field of terminal technologies, and in particular, to an account login method and an electronic device.
With development of electronic devices, users own more types of electronic devices, and one user may own a plurality of electronic devices such as a mobile phone and a personal computer (personal computer, PC). Different electronic devices can provide a user with some same services. For example, a same application (application, App) may be installed in different electronic devices, and a user can use different versions (for example, a web page version and a mobile phone APP version) of a same App in different electronic devices by logging in to an account of the user. However, at present, when logging in to an account in some electronic devices, especially a non-common electronic device of a user, the user is usually required to perform a specific operation on a common device (for example, a mobile phone) to assist in verification. This requires the user to simultaneously perform operations on at least two electronic devices, and consequently login efficiency is low, easily causing poor user experience.
Embodiments of this application provide an account login method. In this method, through interaction between a login device and a verification device on login information of a web page account, a user can automatically log in to the web page account without operating the verification device.
According to a first aspect, an account login method is provided. The method is applied to a login device. A communication connection is established between the login device and a verification device, and the method includes:
According to the account login method provided in this implementation, when a user logs in to an account on a login device, the login device automatically obtains verification information corresponding to the account from a verification device, without requiring the user to manually view the verification information on the verification device and input the verification information to the login device, thereby improving convenience of logging in to the account on the login device and improving user experience.
With reference to the first aspect, in some implementations of the first aspect, the logging in to the target website in a target manner includes logging in to the target website in an SMS message verification manner, or logging in to the target website in a QR code scanning manner.
With reference to the first aspect, in some implementations of the first aspect, when the target manner is logging in to the target website in the SMS message verification manner, the method specifically includes:
With reference to the first aspect, in some implementations of the first aspect, when there are a plurality of mobile numbers, the obtaining the mobile number sent by the verification device, and filling an account filling position in the login interface of the browser with the mobile number specifically includes:
With reference to the first aspect, in some implementations of the first aspect, the method further includes:
With reference to the first aspect, in some implementations of the first aspect, when the target manner is logging in to the target website in the QR code scanning manner, the method specifically includes:
With reference to the first aspect, in some implementations of the first aspect, the method further includes:
With reference to the first aspect, in some implementations of the first aspect, the receiving a second preset operation input by the user, and logging in to the target website in response to the second preset operation specifically includes:
With reference to the first aspect, in some implementations of the first aspect, the login device includes a login filling plug-in, the browser, a first SMS message service module, and a first connection service module, and the method further includes:
With reference to the first aspect, in some implementations of the first aspect, the method further includes:
With reference to the first aspect, in some implementations of the first aspect, when there are a plurality of mobile numbers, the obtaining the mobile number sent by the verification device, and filling an account filling position in the login interface of the browser with the mobile number specifically includes:
With reference to the first aspect, in some implementations of the first aspect, when the target manner is logging in to the target website in the QR code scanning manner, the method specifically includes:
With reference to the first aspect, in some implementations of the first aspect, the method further includes:
With reference to the first aspect, in some implementations of the first aspect, the receiving the second preset operation input by the user, and logging in to the target website in response to the second preset operation specifically includes:
According to a second aspect, an account login method is provided. The method is applied to a verification device and includes:
According to a third aspect, an electronic device is provided. The electronic device includes: one or more processors; and one or more memories. The one or more memories store one or more computer programs, the one or more computer programs include instructions, and when the instructions are executed by the one or more processors, the electronic device is enabled to perform the method according to any one of the first aspect, the second aspect, or the implementations in the first aspect.
According to a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores computer-executable program instructions, and when the computer-executable program instructions are run on a computer, the computer is enabled to perform the method according to any one of the first aspect, the second aspect, or the implementations in the first aspect.
According to a fifth aspect, a computer program product is provided. The computer program product includes computer program code, and when the computer program code is run on a computer, the computer is enabled to perform the method according to any one of the first aspect, the second aspect, or the implementations in the first aspect.
It should be noted that, terms used in implementations of embodiments of this application are only used to explain specific embodiments of this application, and are not intended to limit this application. In the descriptions of the embodiments of this application, unless otherwise stated, “/” means “or”. For example, A/B may represent A or B. In this specification, “and/or” is merely an association relationship for describing associated obstacles and represents that three relationships may exist. For example, A and/or B may represent the following three cases; only A exists, both A and B exist, and only B exists. In addition, in the descriptions of the embodiments of this application, unless otherwise specified, “a plurality of” means two or more than two, and “at least one” and “one or more” mean one, two, or more than two.
In the following, the terms “first” and “second” are used merely for the purpose of description, and shall not be construed as indicating or implying relative importance or implicitly indicating a quantity of indicated technical features. Therefore, a feature defined by “first” or “second” may explicitly or implicitly include one or more such features.
As described in this specification, referring to “an embodiment”, “some embodiments”, or the like means that one or more embodiments of this application include particular features, structures, or characteristics described with reference to the embodiment. Therefore, statements such as “in an embodiment”, “in some embodiments”, “in some other embodiments”, or “in other embodiments” that appear in different parts of this specification do not necessarily refer to same embodiments, but mean “one or more but not all embodiments”, unless otherwise specifically emphasized. The terms “include”, “comprise”, and “have” and variants thereof all mean “include but are not limited to”, unless otherwise specifically emphasized.
With reference to the description in the background, in daily application, when a user logs, by using a browser of a PC, in to a website that is of a web page version and that corresponds to an APP, the user often needs to take out a mobile phone to scan a QR code in a web page for assistant login, or the user often needs to fill the web page with a verification SMS message received by the mobile phone for assistant login. For example, HONOR Store of a web page version is logged in to by using a browser of a PC. As shown in
Alternatively, as shown in
However, in login manners such as the login manners described above, a user needs to simultaneously operate two electronic devices, and consequently operation inconvenience is caused for the user and account login efficiency is relatively low. Especially when a mobile phone is not around the user, it is difficult for the user to smoothly log in to an account only by operating a login device alone. This causes a delay for the user in normally logging in to the account to perform a related operation, resulting in poor user experience.
In view of this, the embodiments of this application provide an account login method and an electronic device. Login information is automatically obtained and verified through cooperative interaction between an account login device (for example, a PC) and an assistant device (for example, a mobile phone), so that the login device automatically fills and verifies a login account or automatically scans a QR code in a web page of a browser without awareness of a user, thereby improving efficiency of logging in to an account of a web page version by using the browser and user experience.
The account login method provided in the embodiments of this application may be applied to a communication system that includes two electronic devices. To facilitate differentiation, the two electronic devices in the system are separately referred to as a login device and a verification device. A browser may be installed in the login device, and a user may log in to a website of a web page version (for example, Taobao of a web page version, WeChat of a web page version, or HONOR Store of a web page version) by using the browser of the login device. An application (application, App) corresponding to the website of the web page version (for example, Taobao of the web page version, WeChat of the web page version, or HONOR Store of the web page version) may be installed in the verification device. The verification device may be used to receive a verification message such as an SMS message, and may further perform assistant verification on login information in the login device in an SMS message manner, a QR code scanning manner, or the like. For example, the login device and the verification device each may be various types of electronic devices. For example, the login device may be an electronic device having a function of logging in to an account by using a browser, such as a PC, a tablet computer, a mobile phone, a smart terminal, an onboard device, an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), a display, or a television. The verification device may be an electronic device having a communication function, such as a mobile phone, a smart terminal, or a wearable device. The login device and the verification device may be electronic devices of a same type, for example, both mobile phones; or the login device and the verification device may be electronic devices of different types, for example, the login device is a PC, and the verification device is a mobile phone. Specific types of the login device and the verification device are not limited in the embodiments of this application.
For example,
In some embodiments, a wired or wireless communication connection may be established between the login device 10 and the verification device 20. The wired communication connection may include, for example, a universal serial bus (universal serial bus, USB) connection. The wireless communication connection may include, for example, a plurality of types such as a Bluetooth (bluetooth) connection, a wireless fidelity (wireless fidelity, Wi-Fi) connection, or a Wi-Fi peer to peer (peer to peer. P2P) connection. This is not limited in this embodiment of this application.
In some embodiments, after a communication connection is established between the login device 10 and the verification device 20, cooperative communication may be further established between the verification device 20 and the login device 10. The verification device 20 may project a currently displayed interface of the verification device 20 to the login device 10, and the login device 10 may display a corresponding screen projection window in real time. Content of the screen projection window may correspondingly change with the change of a screen projection interface in the verification device 20. In a cooperative communication scenario, a user may input an operation to the screen projection window displayed on the login device 10, to reversely control the verification device 20. For example, when the screen projection window displayed on the login device 10 is an account login confirmation interface (shown in
For example,
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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 speaker 170A, a telephone receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a subscriber identification module (subscriber identification module, SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It may be understood that the structure illustrated in this embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In some other embodiments of this application, the electronic device 100 may include more or fewer components than those shown in the figure, some components may be combined, some components may be split, or components may be arranged in different manners. Components shown in the figure may be implemented by using hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, a neural-network processing unit (neural-network processing unit, NPU), and/or the like. Different processing units may be independent components, or may be integrated into one or more processors.
The controller may be a nerve center and command center of the electronic device 100. The controller may generate an operation control signal based on instruction operation code and a sequence signal, to complete control of instruction fetching and instruction execution.
A memory may be further disposed in the processor 110, and is configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache. The memory may store instructions or data just used or cyclically used by the processor 110. If the processor 110 needs to use the instructions or the data again, the processor 110 may directly invoke the instructions or the data from the memory. This avoids repeated access and reduces waiting time of the processor 110, thereby improving system efficiency.
In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (inter-integrated circuit, I2C) interface, an inter-integrated circuit sound (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver/transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (general-purpose input/output, GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, a universal serial bus (universal serial bus, USB) interface, and/or the like.
The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (serial clock line, SCL). In some embodiments, the processor 110 may include a plurality of groups of I2C buses. The processor 110 may be separately coupled to the touch sensor 180K, a charger, a camera flash, the camera 193, and the like by using different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K by using an I2C interface, so that the processor 110 communicates with the touch sensor 180K by using the I2C bus interface, to implement a touch function of the electronic device 100.
The 12S interface may be used for audio communication. In some embodiments, the processor 110 may include a plurality of groups of I2S buses. The processor 110 may be coupled to the audio module 170 by using the 12S bus, to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transfer an audio signal to the wireless communication module 160 by using the 12S interface, to implement a function of answering a call by using a Bluetooth headset.
The PCM interface may also be used for audio communication, to sample, quantize, and code an analog signal. In some embodiments, the audio module 170 may be coupled to the wireless communication module 160 by using the PCM bus interface. In some embodiments, the audio module 170 may also transfer an audio signal to the wireless communication module 160 by using the PCM interface, to implement a function of answering a call by using a Bluetooth headset. Both the 12S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus and is used for asynchronous communication. The bus may be a bidirectional communication bus. The bus converts to-be-transmitted data between serial communication and parallel communication. In some embodiments, the UART interface is usually configured to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with a Bluetooth module in the wireless communication module 160 by using the UART interface, to implement a Bluetooth function. In some embodiments, the audio module 170 may transfer an audio signal to the wireless communication module 160 by using the UART interface, to implement a function of playing music by using a Bluetooth headset.
The MIPI interface may be configured to connect the processor 110 and peripheral components such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and the like. In some embodiments, the processor 110 communicates with the camera 193 by using the CSI interface, to implement a photographing function of the electronic device 100. The processor 110 communicates with the display screen 194 by using the DS1 interface, to implement a display function of the electronic device 100.
The GPIO interface may be configured by using software. The GPIO interface may be configured as a control signal or may be configured as a data signal. In some embodiments, the GPIO interface may be configured to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, or the like. The GPIO interface may alternatively be configured as an I2C interface, an 12S interface, a UART interface, an MIPI interface, or the like.
The USB interface 130 is an interface that complies with USB standard specifications, and may be specifically a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be configured to be connected to a charger to charge the electronic device 100, may be configured to transmit data between the electronic device 100 and a peripheral device, or may be configured to be connected to a headset, to play audio by using the headset. The interface may alternatively be configured to be connected to another terminal, for example, an AR device.
It may be understood that an interface connection relationship between modules illustrated in this embodiment of the present invention is merely an example for description, and does not constitute a limitation on the structure of the electronic device 100. In some other embodiments of this application, the electronic device 100 may alternatively use an interface connection manner different from that in the foregoing embodiment, or use a combination of a plurality of interface connection manners.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 may receive charging input from a wired charger by using the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive wireless charging input by using a wireless charging coil of the electronic device 100. The charging management module 140 may further supply power to the terminal by using the power management module 141 while charging the battery 142.
The power management module 141 is configured to be connected to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, or the like. The power management module 141 may be further configured to monitor parameters such as a battery capacity, a quantity of battery cycles, and a battery health status (leakage or impedance). In some other embodiments, the power management module 141 may alternatively be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may alternatively be disposed in a same component.
A wireless communication function of the electronic device 100 may be implemented by using the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 may be configured to cover one or more communication bands. Different antennas may be further multiplexed to improve antenna utilization. For example, the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna may be used in combination with a tuning switch.
The mobile communication module 150 may provide a solution applied to the electronic device 100 for wireless communication including 2G/3G/4G/5G and the like. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), and the like. The mobile communication module 150 may receive an electromagnetic wave by using the antenna 1, perform processing such as filtering or amplification on the received electromagnetic wave, and transmit a processed electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may further amplify a signal obtained after modulation by the modem processor, and convert, by using the antenna 1, an amplified signal into an electromagnetic wave for radiation. In some embodiments, at least some functional modules in the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some functional modules in the mobile communication module 150 may be disposed in a same component as at least some modules in the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a to-be-sent low-frequency baseband signal into a medium/high-frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. Then, the demodulator transfers, to the baseband processor for processing, the low-frequency baseband signal obtained through demodulation. The low-frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal by using an audio device (not limited to the speaker 170A or the telephone receiver 170B), or displays an image or a video by using the display screen 194. In some embodiments, the modem processor may be an independent component. In some other embodiments, the modem processor may be independent of the processor 110, and the modem processor and the mobile communication module 150 or another function module are disposed in a same component.
The wireless communication module 160 may provide a solution applied to the electronic device 100 for wireless communication including a wireless local area network (wireless local area networks, WLAN) (for example, a wireless fidelity (wireless fidelity. Wi-Fi) network), Bluetooth (bluetooth, BT), a global navigation satellite system (global navigation satellite system. GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), an infrared (infrared, IR) technology, and the like. The wireless communication module 160 may be one or more components integrating at least one communication processing module. The wireless communication module 160 receives an electromagnetic wave by using the antenna 2, performs frequency modulation and filtering processing on an electromagnetic wave signal, and sends a processed signal to the processor 110. The wireless communication module 160 may further receive a to-be-sent signal from the processor 110, perform frequency modulation and amplification on the signal, and convert, by using the antenna 2, an amplified signal into an electromagnetic wave for radiation.
In some embodiments, the antenna 1 and the mobile communication module 150 in 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 another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou navigation satellite system (beidou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements a display function by using the GPU, the display screen 194, the application processor, and the like. The display screen 194 is configured to display an image, a video, and the like.
The electronic device 100 may implement a photographing function by using the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The digital signal processor is configured to process a digital signal. In addition to processing a digital image signal, the digital signal processor can further process another digital signal. For example, when the electronic device 100 selects a frequency, the digital signal processor is configured to perform Fourier transform and the like on frequency energy. The video codec is configured to compress or decompress a digital video. The NPU is a neural-network (neural-network, NN) computing processor, quickly processes input information by referring to a biological neural network structure, for example, by referring to a transfer mode between human brain neurons, and may further continuously perform self-learning.
The external memory interface 120 may be configured to be connected to an external memory card such as a Micro SD card, to expand a storage capability of the electronic device 100. The external memory card communicates with the processor 110 by using the external memory interface 120, to implement a data storage function, for example, to store files such as music and a video in the external memory card. The internal memory 121 may be configured to store computer-executable program code, and the executable program code includes instructions.
The electronic device 100 may implement an audio function such as music playing or recording by using the audio module 170, the speaker 170A, the telephone receiver 170B, the microphone 170C, the headset jack 170D, and the application processor, and the like.
The pressure sensor 180A is configured to sense a pressure signal, and may convert the pressure signal into an electrical signal. The gyroscope sensor 180B may be configured to determine a moving attitude of the electronic device 100. The magnetic sensor 180D may include a Hall sensor. The electronic device 100 may detect opening or closing of a flip leather case by using the magnetic sensor 180D. The acceleration sensor 180E may detect magnitudes of acceleration in various directions (usually on three axes) of the electronic device 100, and may detect a magnitude and a direction of gravity when the electronic device 100 is still. The acceleration sensor 180E may be further configured to identify an attitude of the terminal, and is applied to applications such as switching between a landscape mode and a portrait mode and a pedometer. The optical proximity sensor 180G may include, for example, a light-emitting diode (LED) and an optical detector such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 100 may emit infrared light by using the light-emitting diode. The ambient light sensor 180L is configured to sense ambient light brightness. The electronic device 100 may adaptively adjust brightness of the display screen 194 based on the sensed the ambient light brightness. The fingerprint sensor 180H is configured to collect a fingerprint. The temperature sensor 180J is configured to detect a temperature. The touch sensor 180K is also referred to as a “touch panel”. The touch sensor 180K may be disposed on the display screen 194. The touch sensor 180K and the display screen 194 constitute a touchscreen, also referred to as a “touch control screen”. The touch sensor 180K is configured to detect a touch operation acting on or near the touch sensor 180K. The bone conduction sensor 180M may obtain a vibration signal.
In addition, the electronic device 100 further includes the barometric pressure sensor 180C and the distance sensor 180F. The barometric pressure sensor 180C is configured to measure barometric pressure. In some embodiments, the electronic device 100 calculates an altitude by using a barometric pressure value measured by the barometric pressure sensor 180C, to assist in positioning and navigation.
The distance sensor 180F is configured to measure a distance. The electronic device 100 may measure a distance in an infrared or laser manner. In some embodiments, in a photographing scenario, the electronic device 100 may measure a distance by using the distance sensor 180F, to implement fast focusing.
For example, a software system of the electronic device 100 may use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiments of the present invention, an Android system of a layered architecture is used as an example to describe a software structure of the electronic device 100.
In a layered architecture, software is divided into several layers, and each layer has a clear role and task. The layers communicate with each other by using software interfaces. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in
The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for the applications at the application layer. The application framework layer includes some predefined functions. As shown in
The window manager is configured to manage a window program. The window manager may obtain a size of a display screen, determine whether a status bar exists, lock a screen, capture a screenshot, and the like.
The content provider is configured to store and obtain data, and enable the data to be accessible to an application. The data may include a video, an image, audio, calls that are made and answered, a browsing history and bookmarks, an address book, and the like.
The view system includes visual controls such as a text display control and a picture display control. The view system may be configured to construct an application. A display interface may include one or more views. For example, a display interface including an SMS message notification icon may include a text display view and a picture display view.
The phone manager is configured to provide the electronic device 100 with a communication function, for example, call status management (including answering, hanging up, or the like).
The resource manager provides various resources such as a localized string, an icon, a picture, a layout file, and a video file for the application.
The notification manager enables the application to display notification information in a status bar, and may be configured to convey a notification-type message. The displayed notification information may automatically disappear after a short stay without user interaction. For example, the notification manager is configured to provide a notification of download completion, a message reminder, and the like. The notification manager may alternatively be a notification that appears in a top status bar of a system in a form of a graph or scroll bar text, for example, a notification of an application running in the background, or a notification that appears on a screen in a form of a dialog window. For example, prompt text information is presented in the status bar, an alert sound is given, the terminal vibrates, and an indicator light flashes.
Android Runtime includes a kernel library and a virtual machine. Android runtime is responsible for scheduling and management of an Android system.
The kernel library includes two parts: One part is a functional function that needs to be invoked in a java language, and the other part is a kernel library of Android.
The application layer and the application framework layer run on the virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is configured to perform functions such as obstacle lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of functional modules, for example, a surface manager (surface manager), a media library (Media Libraries), a three-dimensional graphics processing library (for example, an OpenGL ES), and a 2D graphics engine (for example, an SGL).
The surface manager is configured to manage a display subsystem, and provide 2D and 3D layer fusion for a plurality of applications.
The media library supports playback and recording in a plurality of common audio and video formats, a still image file, and the like. The media library may support a plurality of audio and video coding formats such as MPEG4, H.264, MP3, AAC, AMR. JPG, and PNG.
The three-dimensional graphics processing library is configured to implement three-dimensional graphics drawing, image rendering and composition, layer processing, and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
The account login method provided in the embodiments of this application may be applied to a scenario in which a verification device needs to assist in account information verification when a user logs in to an account of a web page version by using a browser of a login device, for example, a scenario in which a mobile phone needs to assist in verification code receiving or QR code scanning to assist in account information verification when a user logs in to WeChat of a web page version, Taobao of a web page version, or HONOR Store of a web page version. To better understand the account login method provided in the embodiments of this application, the following describes an account login process from a perspective of a user by using an example of logging in to a login account (or an HONOR ID or an HONOR Store account) of HONOR Store of a PC web page version.
For example,
In a possible scenario, when a user logs in to HONOR Store of a web page version by using a browser of a login device (where a PC is used as an example), the PC may display a login interface that is of the browser and that is shown in
In some embodiments, when the user inputs a preset operation 503 (such as an operation of right-clicking a mouse) in the login interface of the PC, the PC may display, in response to the preset operation 503, a first-level drop-down list shown in
For example, in response to the operation in which the user clicks on “Use an SMS message of a mobile phone to log in”, the PC is triggered to automatically log in to the account in the browser by using an SMS message of a mobile phone. For example, in a process of automatically logging in to the account, the login interface of the PC may be shown in
It should be noted that the automatic account login in this embodiment of this application indicates that the PC automatically fills the login account and automatically obtains and fills a verification code. However, it does not indicate that the user does not need to perform any operation, but indicates that the user still needs to perform some operations in the PC (for example, an operation of clicking on a “Get verification code” icon or an operation of clicking on a “Log in/Register” icon described below). However, the user does not need to perform an operation in the mobile phone. In this case, even if the mobile phone is not around the user, but communication is established between the mobile phone and the PC, the user can successfully log in to a website of a web page version by operating the PC alone.
In some embodiments, as shown in
In some embodiments, as shown in
For example, as shown in
In some embodiments, after the PC automatically fills the login account, as shown in
For example, as shown in
It should be noted that the PC interfaces shown in the foregoing embodiment of
According to the account login method provided in this embodiment of this application, when a user logs in to a website of a web page version by using a browser of a login device, the login device automatically obtains account information and verification information that correspond to the account from the verification device, without requiring the user to manually operate or view the verification device, so that the account information and the verification information can be automatically filled without awareness of the user, thereby improving convenience of logging in to the website of the web page version on the login device and improving user experience.
The following describes another account login process from a perspective of a user by still using an example of logging in to a login account of HONOR Store of a PC web page version. For example,
In another possible scenario, a user may alternatively log in to a website of a web page version in a browser of a login device in a QR code scanning manner. For example, a code scanning login interface of a PC may be shown in
In some embodiments, when the user inputs a preset operation 602 (for example, an operation of right-clicking a mouse) in the login interface of the PC, the login interface of the PC may display a first-level drop-down list shown in
In some embodiments, in response to the operation in which the user clicks on the “Scan the code to log in to the account” prompt bar, the account login interface of the PC may display “Code scanning succeeds” prompt information, for example, “Code scanning succeeds” prompt information shown in
In some embodiments, when displaying the “Code scanning succeeds” prompt information, the account login interface of the PC may further display “Confirm the login in a mobile phone interface” prompt information, for example, “Please confirm the login according to the prompt in the mobile phone interface” shown in
It should be noted that the PC interfaces shown in the foregoing embodiment of
According to the account login method provided in this embodiment of this application, when a user logs in to a website of a web page version on a login device, the login device automatically obtains verification information corresponding to an account from a verification device, without requiring the user to manually view the verification information on the verification device and input the verification information to the login device, thereby improving convenience of logging in to the website on the login device and improving user experience.
To better understand the account login method provided in the embodiments of this application, the following describes a specific implementation process of the account login method with reference to different login manners. First, a specific implementation process in which a login manner is logging in to a corresponding account by using a mobile number and a verification code is described.
For example,
S701. A login filling plug-in of a PC receives a first operation input by a user.
The login filling plug-in of the PC may be a plug-in installed in a browser through manual assistance of the user or a plug-in automatically installed in the browser by the PC after the browser used for account login is downloaded. The login filling plug-in is invoked to provide a trigger interface for the PC to perform automatic account filling and verification. For example, the login filling plug-in may be specifically implemented as a “Use an SMS message of a mobile phone to log in” prompt bar (for example, the “Use an SMS message of a mobile phone to log in” prompt bar shown in
In some embodiments, the first operation is used to trigger the PC to perform an automatic filling and verification procedure for the login account in the login interface of the browser. The automatic filling procedure includes that the PC queries and obtains a mobile number, a verification code, and the like from a mobile phone. For example, the first operation may be an operation in which the user clicks on a visible function button presented by the login plug-in in the interface of the browser of the PC. For example, after the login plug-in is installed, when the top Tab navigation bar in the login interface of the browser of the PC displays the login button, the first operation may be an operation of clicking on the login button. For another example, after the login plug-in is installed, when a first-level drop-down list displayed when the user right-clicks a mouse in the login interface of the PC may include a “Use an SMS message of a mobile phone to log in” prompt bar (shown in
When the first operation is clicking on the “Use an SMS message of a mobile phone to log in” prompt bar in the first-level drop-down list, before performing the operation, the user may further input a preset operation (for example, the preset operation 503 shown in
S702. The login filling plug-in of the PC sends a first query message to a first connection service module of the PC.
The first query message is used to query a mobile number from the first connection service module of the PC, and the mobile number is used as a login account of a web page version of the browser of the PC.
It should be noted that the first connection service module may communicate with a second connection service module on a mobile phone side to obtain a plurality of types of information (including the mobile number) on the mobile phone side. For example, there may be a plurality of manners of triggering the first connection service module to obtain the mobile number. For example, after a communication connection is established between the mobile phone and the PC, the PC may be triggered to query the mobile number corresponding to the mobile phone from the mobile phone and store the queried mobile number in the PC. For another example, after the user clicks on the login filling plug-in in the login interface of the PC, and the login filling plug-in sends the first query message to the first connection service module, the first connection service module may be triggered to query the mobile number of the mobile phone from the mobile phone side in real time. Time and a manner of triggering the PC to query the mobile number from the mobile phone are not specifically limited in this embodiment of this application.
S703. The first connection service module of the PC sends a first response message to the login filling plug-in.
The first response message includes the mobile number used as the login account of the web page version of the browser of the PC.
In some embodiments, the mobile phone may correspond to at least one mobile number. For example, when only one subscriber identity module (subscriber identity module, SIM) card (or embedded SIM (embedded-SIM, eSIM) card) is installed in the mobile phone, the mobile phone corresponds to one mobile number. When two SIM cards (or eSIM cards) are installed in the mobile phone, the mobile phone may correspond to two mobile numbers. The first connection service module may send the at least one mobile number corresponding to the mobile phone to the login filling plug-in.
S704. The login filling plug-in of the PC fills the browser with the mobile number.
In some embodiments, after obtaining the at least one mobile number corresponding to the mobile phone, the login filling plug-in of the PC may fill an account input box in the login interface of the browser of the PC with the mobile number corresponding to the login account. For example, the login filling plug-in may fill the account input box in the login interface of the browser of the PC with the mobile number in a plurality of manners. For example, w % ben there is only one mobile number, after obtaining the mobile number, the login filling plug-in may automatically fill the account input box in the login interface of the browser with the mobile number. For another example, when there are two or more mobile numbers, after the login filling plug-in obtains the mobile numbers, when the user clicks on a login button corresponding to the login filling plug-in or clicks on the login interface, the PC displays the plurality of mobile numbers (for example, in a form of a second-level drop-down list) for the user to select, and automatically fills the account input box in the login interface with a mobile number selected by the user.
S705. The browser of the PC triggers the login filling plug-in of the PC to obtain a verification code.
In some embodiments, after the mobile number is automatically filled in the account input box in the login interface of the browser of the PC, the browser of the PC may trigger the login filling plug-in to obtain an SMS verification code on the mobile phone side.
In some embodiments, a manner in which the browser of the PC triggers the login filling plug-in to obtain the SMS verification code on the mobile phone side may include: the browser of the PC sends a trigger message to the login filling plug-in, where the trigger message may be used to indicate that the login account has been filled, and the login filling plug-in may query the SMS verification code corresponding to the login account from the mobile phone in response to the trigger message.
For example, a process in which the login filling plug-in queries and obtains the SMS verification code corresponding to the login account from the mobile phone may include the following step S706 to step S712.
S706. The login filling plug-in of the PC sends a first report message to a first SMS message service module of the PC.
The first report message may include an identifier of the login account of the PC, and the identifier of the login account is used to identify a login website (for example, Taobao, HONOR Store, or WeChat) that is currently logged in to. For example, the identifier of the login account is a name (such as Taobao, HONOR Store, or WeChat) corresponding to the login account, or a uniform resource locator (uniform resource locator, URL) corresponding to the login account.
S707. The first SMS message service module of the PC sends a second query message to the first connection service module of the PC.
The second query message is used to query the verification code corresponding to the mobile number, and includes the identifier of the current web page login account of the browser of the PC.
S708. The first connection service module of the PC sends the second query message to the second connection service module of the mobile phone.
In some embodiments, the first connection service module and the second connection service module may exchange information through wireless communication. For example, the first connection service module may send the second query message to the second connection service on the mobile phone side in a Bluetooth communication manner, a Wi-Fi communication manner, a Wi-Fi P2P communication manner, or the like. However, a communication manner between the PC and the mobile phone is not specifically limited in this embodiment of this application.
It should be noted that the first connection service module and the second connection service module in this embodiment of this application may correspond to the mobile communication module and/or the wireless communication module shown in
S709. The second connection service module of the mobile phone listens for an SMS message feature in response to the second query message.
In some embodiments, after receiving the second query message sent by the first connection service module of the PC, the second connection service module of the mobile phone may obtain the identifier of the login account of the browser of the PC based on the second query message, and determine, based on the identifier of the login account, a login website (for example, Taobao, HONOR Store, or WeChat) that is to be logged in to; and then, the second connection service module may listen, based on the login website currently logged in to by the browser of the PC, for a verification SMS message corresponding to the login website.
It should be noted that different login websites correspond to different SMS message features, and therefore correspondences between different login websites and different SMS message features may be preset. For example, the SMS message feature herein may include an SMS message template, SMS message content, and a key field (for example, a name of a login platform or a URL of the login platform) included in an SMS message. For example, the login website currently logged in to by the browser of the PC is HONOR Store. In this case, after obtaining the login website, the second connection service module may listen for an SMS message that includes a uniform resource locator (uniform resource locator. URL) connection address (for example, hiHonor.com) of HONOR Store of a web page version, may listen for an SMS message that includes a “HONOR Store” field, or may listen for an SMS message whose SMS message template matches a preset correspondence with the HONOR Store login website.
In actual application, the verification SMS message that matches the login website may be listened for based on another type of correspondence. This is not limited in this embodiment of this application.
In some embodiments, the second connection service module may listen for the verification SMS message corresponding to the login website of the browser of the PC within preset duration. When obtaining, through listening within the preset duration, no verification SMS message corresponding to the login website, the second connection service module may query, from a database of the mobile phone, whether the verification SMS message corresponding to the login website has been stored. For example, the second connection service may query the corresponding verification SMS message from the database based on an SMS message feature corresponding to the login website.
In some embodiments, when obtaining, through listening, the verification SMS message corresponding to the login website, or when obtaining, through querying, the verification SMS message corresponding to the login website from the database, the second connection service module may obtain, based on the SMS message, verification information (for example, a verification code) corresponding to the login website.
It should be noted that this embodiment of this application only uses the verification SMS message as an example for description, and is not limited thereto. For example, in some scenarios, if a verification message corresponding to a login website is sent to a verification device in another manner (for example, a WeChat manner or an Email manner), corresponding verification information may still be obtained in the manner provided in this embodiment of this application.
S710. The second connection service module of the mobile phone sends a second response message to the first connection service module of the PC.
The second response message includes the verification code queried by the PC.
S711. The first connection service module of the PC sends the second response message to the first SMS message service module of the PC.
S712. The first SMS message service module of the PC sends the second response message to the login filling plug-in of the PC.
S713. The login filling plug-in of the PC fills the browser of the PC with the verification code.
In some embodiments, after obtaining the second response message, the login filling plug-in of the PC may obtain, based on the second response message, the verification code that corresponds to the login account and that is received on the mobile phone side. Then, the login filling plug-in of the PC may fill the browser of the PC with the verification code.
For example, a process in which the login filling plug-in of the PC fills the browser of the PC with the verification code may include: after obtaining the verification code, the login filling plug-in sends the verification code to the browser; and after receiving the verification code, the browser fills a corresponding verification information filling box with the verification code.
Optionally, after obtaining the verification code, the login filling plug-in of the PC may further check the verification code, for example, check whether the verification code matches the login website; and when determining that the verification code matches the login website, that is, the verification code is a verification code of the current login website, fill a corresponding position in the browser with the verification code.
According to the account login method provided in this embodiment of this application, when a user logs in to an account on a login device, the login device automatically obtains verification information corresponding to the account from a verification device, without requiring the user to manually view the verification information on the verification device and input the verification information to the login device, thereby improving convenience of logging in to the account on the login device and improving user experience.
The following specifically describes a corresponding account login process during login to a browser of a PC in a code scanning manner.
For example,
S801. A login filling plug-in of a PC receives a second operation input by a user.
The second operation may be, for example, an operation in which the user clicks on a QR code in a login interface of a browser of the PC, and may correspond to, for example, an operation of clicking on “Use a mobile phone to scan the code to log in” shown in
S802. In response to the second operation, the login filling plug-in of the PC captures a screenshot of the QR code to obtain a QR code image.
In some embodiments, before the second operation of the user is received, the login interface of the browser of the PC may display a complete QR code image (shown in
S803. The login filling plug-in of the PC sends a first upload message to a first connection service module of the PC.
The first upload message includes the QR code image.
S804. The first connection service module of the PC sends a first notification message to a second connection service module of a mobile phone.
The first notification message is used to notify the mobile phone to scan the code. The first notification message may further include an identifier of a login website of the browser of the PC, and the identifier of the login account is used to identify a login website (for example, Taobao, HONOR Store, or WeChat) that is currently logged in to. For example, the identifier of the login account is a name (such as Taobao, HONOR Store, or WeChat) corresponding to the login account, or a uniform resource locator (uniform resource locator, URL) corresponding to the login account.
In some embodiments, the first notification message may further include the QR code image. Specifically, before sending the QR code image to the second connection service module, the first connection service module may first convert a format of the QR code image, for example, convert the QR code image from a picture format to a video stream format (for example, an MP4 format); and then, send a QR code image in the video stream format to the second connection service module of the mobile phone.
S805. The second connection service module of the mobile phone obtains an identifier of a code scanning page.
In some embodiments, after receiving the second notification message, the second connection service module may obtain the identifier of the code scanning page based on the identifier of the login website in the second notification message.
It should be noted that the identifier of the code scanning page herein may be a code scanning page in a target APP that is in the mobile phone and that corresponds to the current login website of the browser of the PC.
In some embodiments, the second connection service module may determine the corresponding target APP in the mobile phone based on the identifier of the login website, and an identifier of the target APP may be used as the identifier of the code scanning page. For example, if the current login website of the browser of the PC is HONOR Store, and the identifier that is of the login website and that is carried in the second notification message is hiHonro.com, the second connection service module may determine, based on the identifier, that the corresponding target APP is an HONOR Store APP in the mobile phone, and a page used to scan the QR code is a code scanning page in the HONOR Store APP in the mobile phone. For another example, if the current login website of the browser of the PC is Taobao, and the identifier that is of the login website and that is carried in the second notification message is a “Taobao” field, the second connection service module may determine, based on the identifier, that the corresponding target APP is a Taobao APP in the mobile phone, and a page used to scan the QR code is a code scanning page in the Taobao APP in the mobile phone.
S806. The second connection service module of the mobile phone pulls up a code scanning service of the target APP.
In some embodiments, after determining the target APP that is in the mobile phone and that corresponds to the current login website of the browser of the PC, the second connection service module may indicate the target APP to perform a QR code scanning procedure. For example, the QR code scanning procedure includes: the target APP indicates an image collection module (for example, a camera of the mobile phone) to enable image scanning to collect QR code information; and in response to the indication of the target APP, the image collection module may perform an image scanning operation, and send a collected data stream to the target APP. A format of the data stream transmitted by the image collection module to the target APP may be a video stream format (for example, an MP4 format).
S807. A code scanning login service module of the mobile phone sends a switching message to the image collection module of the mobile phone.
The switching message is used to indicate the image collection module to switch the data stream transmitted to the target APP to a data stream including the QR code image.
In some embodiments, the code scanning login service module may send the data stream including the QR code image to the image collection module, and the image collection module sends the obtained data stream including the QR code image to the target APP in response to the switching message. That is, in this case, the image collection module still performs an image scanning operation, but a data stream sent by the image collection module to the target APP is not a data stream of an image collected in real time, but is replaced with the data stream including the QR code image.
In some embodiments, after obtaining the data stream including the QR code image, the target APP authenticates the QR code information. For a process in which the target APP authenticates the QR code information, refer to an existing procedure. Details are not described herein.
S808. The code scanning login service module of the mobile phone sends a second notification message to the first connection service module of the PC.
After the authentication performed by the target APP on the QR code information succeeds, the mobile phone may feed back a code scanning success message to the PC. The code scanning success message may be carried in, for example, the second notification message. After obtaining the code scanning success message, the login filling plug-in of the PC may indicate the browser to display “Code scanning succeeds” prompt information (shown in
In addition, the second notification message is further used to notify the PC to pull up a screen projection window of the mobile phone. Specifically, the second connection service module may send the second notification message to the login filling plug-in of the PC, and the login filling plug-in may indicate, based on the second notification message, the browser of the PC to display the current screen projection window of the mobile phone. The current screen projection window of the mobile phone may be, for example, an interface (for example, the screen projection window that is of the mobile phone and that is shown in
In some embodiments, if no cooperative communication is established between the mobile phone and the PC before the login filling plug-in indicates the browser to display the current screen projection window of the mobile phone, the second notification message may first trigger the PC to establish cooperative communication with the mobile phone. Alternatively, if no cooperative communication is established between the mobile phone and the PC before the login filling plug-in indicates the browser to display the current screen projection window of the mobile phone, the mobile phone may actively establish cooperative communication with the PC after successfully scanning the code. For a process of establishing cooperative communication between the PC and the mobile phone, refer to an existing procedure. Details are not described herein.
S809. The first connection service module of the PC receives a third operation input by the user.
The third operation is used to agree to login to the web page version of the target App. The third operation may correspond to, for example, a clicking operation on the “Log in” icon in the screen projection window that is of the mobile phone and that is shown in
According to the account login method provided in this embodiment of this application, when a user logs in to an account on a login device, the login device automatically obtains verification information corresponding to the account from a verification device, without requiring the user to manually view the verification information on the verification device and input the verification information to the login device, thereby improving convenience of logging in to the account on the login device and improving user experience.
For example,
S1001. Receive a first preset operation input based on a login interface of a target website, where the first preset operation is used to choose to log in to the target website in a target manner, and the login interface is a display interface in a browser of a login device.
In some embodiments, when a user logs in to the target website by using the browser of the login device, the login device receives the first preset operation input by the user. The first preset operation is an operation that is input by the user and that is used to choose to log in to the target website in the target manner.
The target website herein may be a website that is logged in to by using the browser and that needs to be logged in to with assistance of a verification device. The login interface may correspond to the interface shown in
For example, the first preset operation herein may correspond to the first operation or the second operation described in the foregoing embodiment, that is, may correspond to the clicking operation on “Use an SMS message of a mobile phone to log in” shown in
In some embodiments, the logging in to the target network in a target manner may include: logging in to the target website in an SMS message verification manner, or logging in to the target website in a QR code scanning manner. The logging in to the target website in an SMS message verification manner may correspond to, for example, the login manner shown in the embodiment of
S1002. Query login information of the target website from the verification device in response to the first preset operation, where the verification device is associated with login information corresponding to the target manner, and the login information corresponds to the first preset operation.
That the verification device is associated with login information corresponding to the target manner may indicate that when the target website is logged in to in the target manner, for example, the verification device can provide some assistant login information, such as a login account, verification information, or password information, corresponding to the target manner, or assist in QR code scanning.
In some embodiments, when the target manner is logging in to the target website in the SMS message verification manner, a process in which the login device queries the login information corresponding to the target website from the verification device may include: querying a mobile number from the verification device in response to the first preset operation in which the user chooses to log in to the target website in the SMS message verification manner, where the mobile number is a login account of the target website. With reference to functional modules of the login device, more specifically, the process may include: when the user logs in to the target website by using the browser of the login device, a login filling plug-in receives the first preset operation input by the user, where the first preset operation is used to choose to log in to the target website in the target manner; the login filling plug-in queries the login information corresponding to the target website from a first connection service module in response to the first preset operation; and then the first connection service queries the login information from the verification device.
In some other embodiments, when the target manner is logging in to the target website in the QR code scanning manner, a process in which the login device queries the login information corresponding to the target website from the verification device may include: obtaining a corresponding QR code image in response to the first preset operation in which the user chooses to log in to the target website in the QR code scanning manner; sending a code scanning notification message to the verification device, where the code scanning notification message includes the QR code image and an identifier corresponding to the target website; and then obtaining a scanning result of the verification device for the QR code image, and providing the login information for the target website by using the browser based on the scanning result.
For a process of querying the login information when the target website is logged in to in different manners, specifically refer to the specific description in the embodiment of
S1003. The login device obtains the login information sent by the verification device.
In some embodiments, after obtaining the login information, the login device may provide the login information for the target website by using the browser.
In some embodiments, when the target manner is logging in to the target website in the SMS message verification manner, a process in which the login device obtains the login information sent by the verification device and provides the login information for the target website by using the browser may include: obtaining the mobile number sent by the verification device, and filling an account filling position in the login interface of the browser with the mobile number; querying verification information corresponding to the target website from the verification device; and obtaining the verification information corresponding to the target website, and filling a verification information filling position in the login interface of the browser with the verification information.
In some embodiments, when there are a plurality of mobile numbers, the obtaining the mobile number sent by the verification device, and filling an account filling position in the login interface of the browser with the mobile number specifically includes, obtaining the plurality of mobile numbers sent by the verification device; displaying the plurality of mobile numbers in the login interface of the browser; receiving a third preset operation input by the user, where the third preset operation is used to select a target mobile number used as the login account from the plurality of mobile numbers; and filling the account filling position in the login interface of the browser with the target account in response to the third preset operation.
In some embodiments, before the account filling position in the login interface of the browser is filled with the mobile number, the login interface of the browser displays a preset waiting interface (correspondingly shown in
In some embodiments, when the target manner is logging in to the target website in the SMS message verification manner, the login device obtains the scanning result of the verification device for the QR code image, and provides the login information for the target website by using the browser based on the scanning result A process of obtaining the code scanning result may include: a login filling plug-in of the login device sends the code scanning notification message to a first connection service module of the login device, where the code scanning notification message includes the QR code image and the identifier corresponding to the target website; the first connection service module sends the code scanning notification message to a second connection service module of the verification device; and after receiving, by using the second connection service module, the code scanning notification message sent by the login device, the verification device indicates, based on the identifier of the target website, a target application APP that is in the verification device and that corresponds to the target website to enable a QR code scanning operation; converts the QR code image into a QR code data stream of a target format, where the target format is consistent with a data stream format obtained when the target APP performs QR code scanning; and then sends the QR code data stream of the target format to the target APP, and obtains a scanning result of the target APP for the QR code image. Then, the verification device sends the code scanning result to the first connection service module of the login device by using the second connection service module. The first connection service module receives the scanning result that is of the QR code image and that is sent by the second connection service module, and sends the scanning result to the login filling plug-in; and the login filling plug-in provides the login information for the target website by using the browser based on the scanning result.
In some embodiments, when the scanning result indicates that scanning performed by the verification device on the QR code image succeeds, the login device may further display first prompt information by using the login interface of the browser, where the first prompt information is used to indicate that the QR code scanning succeeds.
S1004. Receive a second preset operation, and log in to the target website by using the browser in response to the second preset operation, where the second preset operation is an operation that is input by the user and that is used to confirm login to the target website.
The second preset operation may be an operation of confirming login to the target website on the browser, and may correspond to, for example, the clicking operation on the “Log in/Register” icon shown in
In some embodiments, when the target website is logged in to in a QR code scanning manner, after code scanning performed by the verification device succeeds, the login device may obtain a screen projection window (for example, the screen projection window shown in
According to the account login method provided in this embodiment of this application, when a user logs in to an account on a login device, the login device automatically obtains verification information corresponding to the account from a verification device, without requiring the user to manually view the verification information on the verification device and input the verification information to the login device, thereby improving convenience of logging in to the account on the login device and improving user experience.
Based on a same technical idea, an embodiment of this application further provides an electronic device, including: one or more processors; and one or more memories. The one or more memories store one or more computer programs, the one or more computer programs include instructions, and when the instructions are executed by the one or more processors, a computer or the processor is enabled to perform one or more steps in any one of the foregoing methods.
Based on a same technical idea, an embodiment of this application further provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable program instructions, and when the computer-executable program instructions are run on a computer, the computer or a processor is enabled to perform one or more steps in any one of the foregoing methods.
Based on a same technical idea, an embodiment of this application further provides a computer program product including instructions. The computer program product includes computer program code, and when the computer program code is run on a computer, the computer or a processor is enabled to perform one or more steps in any one of the foregoing methods.
All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When the software is used for implementation, some or all of the embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or some of the procedures or functions according to the embodiments of this application are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium, or transmitted by using the computer-readable storage medium. The computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any available medium accessible to a computer, or a data storage device such as a server or a data center in which one or more available mediums are integrated. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), a semiconductor medium (such as a solid state disk (solid state disk, SSD)), or the like.
A person of ordinary skill in the art may understand that all or some of the procedures of the methods in the foregoing embodiments are implemented. The procedures may be completed by a computer program by instructing related hardware. The program may be stored in the computer-readable storage medium. When the program is executed, the procedures in the foregoing method embodiments may be included. The foregoing storage medium includes any medium that can store program code, such as a ROM, a random access memory RAM, a magnetic disk, or an optical disc.
The foregoing descriptions are merely specific implementations of the embodiments of this application, but are not intended to limit the protection scope of the embodiments of this application. Any change or replacement within the technical scope disclosed in the embodiments of this application shall fall within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application shall be subject to the protection scope of the claims.
Number | Date | Country | Kind |
---|---|---|---|
202210998425.0 | Aug 2022 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2023/090855 | 4/26/2023 | WO |