A quick login method, device and electronic equipment
By receiving cloud account information for cloud authentication and synchronizing local account information, the problem of inconvenient operation of existing device login methods is solved, achieving fast login and an efficient user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DINGDAO ZHILIAN (BEIJING) TECH CO LTD
- Filing Date
- 2022-12-30
- Publication Date
- 2026-06-30
AI Technical Summary
Existing device login methods require users to manually enter local and cloud account information, which is inconvenient, easy to forget, and affects user experience.
By receiving cloud account information for cloud authentication, saving credentials and authorizing desktop operation permissions, and combining local account information for matching and synchronization, quick login can be achieved.
It improves the user experience of logging into devices, simplifies the login process, and reduces the frequency of forgotten and reset passwords.
Smart Images

Figure CN116032625B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer technology, and in particular relates to a quick login method, device and electronic device. Background Technology
[0002] To protect computer system security, most mainstream operating systems on the market require users to manually register a local account before logging in and starting the operating system. Subsequent logins also require authentication by entering the correct local account information. Additionally, operating systems like Apple and Microsoft offer cloud-based user centers. After registering a cloud account, if the local PC needs cloud user permissions, the user must first enter the correct local account information to log in locally, and then re-enter the cloud account information for cloud login verification to obtain cloud user permissions. All PC system operation permissions require authentication with the correct corresponding account information, thus ensuring computer system security.
[0003] However, users of the device who want to obtain cloud user privileges need to complete both local login verification and cloud login verification. They also need to remember their local account information and cloud account information, which is inconvenient and easy to forget, leading to frequent password resets and greatly affecting the user experience. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a quick login method, apparatus, and electronic device to solve the problem of poor user experience in existing device login methods. The present invention enables quick login to a target device using cloud account information, obtaining the corresponding permissions of the cloud user, and effectively improving the user experience of logging into the device.
[0005] In a first aspect, embodiments of the present invention provide a quick login method, including:
[0006] Receive the cloud account information of the currently logged-in user;
[0007] The cloud account information of the currently logged-in user is sent to the cloud for authentication; wherein, the cloud account information is pre-stored in the cloud.
[0008] Receive the authentication success message from the cloud, save the cloud login credentials, and authorize desktop operation permissions to the current user.
[0009] In conjunction with the first aspect, in the first embodiment of the first aspect, the account information includes account information and password information;
[0010] After receiving the authentication success message from the cloud and before saving the cloud login credentials and authorizing desktop operation permissions to the current user, the process also includes:
[0011] Determine whether local account information exists that matches the account information in the cloud account information of the currently logged-in user;
[0012] If no local account information exists that matches the account information in the cloud account information currently logged in by the user, then a new local account information that is identical to the cloud account information currently logged in by the user will be created.
[0013] In conjunction with the first implementation of the first aspect, in the second implementation of the first aspect, after determining whether local account information exists that matches the account information in the cloud account information logged in by the current user, the method further includes:
[0014] If a local account exists that matches the account information in the cloud account information logged in by the current user, then it is determined whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user.
[0015] If the password information in the matched local account information is different from the password information in the cloud account information currently logged in by the user, then the password information in the matched local account information will be modified to the password information in the cloud account information currently logged in by the user.
[0016] In conjunction with the first or second implementation of the first aspect, in the third implementation of the first aspect, after receiving the cloud account information of the currently logged-in user, the method further includes:
[0017] Local authentication is performed on the cloud account information of the currently logged-in user based on the local account information pre-stored locally;
[0018] The step of receiving the authentication success message from the cloud, saving the cloud login credentials, and authorizing desktop operation permissions to the current user includes:
[0019] Determine whether a cloud authentication result message has been received from the cloud within a preset time period since the last time the cloud account information of the current user was sent to the cloud for authentication.
[0020] If a cloud authentication result message is received from the cloud within a preset time period, determine whether the cloud authentication result message is a successful cloud authentication message.
[0021] If the cloud authentication result message is a successful cloud authentication message, then save the cloud login credentials and authorize desktop operation permissions to the current user;
[0022] If the cloud authentication result message is a cloud authentication failure message, then it is determined that the current user's login has failed.
[0023] In conjunction with the third implementation of the first aspect, the fourth implementation of the first aspect further includes, after determining whether a cloud authentication result message has been received from the cloud within a preset time period after the time when the cloud account information of the current user login was last sent to the cloud for authentication, the method further includes:
[0024] If no cloud authentication result message is received from the cloud within the preset time period, it is determined whether the number of retries for cloud authentication request i has reached the preset maximum number; where the initial value of i is 1.
[0025] If the number of retries for cloud authentication request i does not reach the preset maximum number, then let i = i + 1;
[0026] The i-th time, the cloud account information of the current user is sent to the cloud for authentication, and then the process returns to the step of determining whether the cloud authentication result sent from the cloud has been received within a preset time period after the last time the cloud account information of the current user was sent to the cloud for authentication.
[0027] If the number of retries for cloud authentication reaches the preset maximum, then determine whether local authentication was successful.
[0028] If local authentication is successful, desktop operation permissions will be granted to the current user.
[0029] If local authentication fails, the current user's login is considered to have failed.
[0030] Secondly, embodiments of the present invention provide a quick login device, comprising:
[0031] The receiving module is used to receive the cloud account information of the currently logged-in user;
[0032] The sending module is used to send the cloud account information of the currently logged-in user to the cloud for authentication; wherein the cloud account information is pre-stored in the cloud.
[0033] The authorization module is used to receive authentication success messages from the cloud, save the cloud login credentials, and authorize desktop operation permissions to the current user.
[0034] In conjunction with the second aspect, in the first embodiment of the second aspect, the account information includes account information and password information;
[0035] The quick login device also includes:
[0036] The first judgment module is used to determine whether there is local account information that matches the account information in the cloud account information logged in by the current user.
[0037] The local account creation module is used to create a new local account with the same information as the cloud account currently logged in, when the judgment result of the first judgment module is negative.
[0038] In conjunction with the first embodiment of the second aspect, in the second embodiment of the second aspect, the quick login device further includes:
[0039] The second judgment module is used to determine whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user when the judgment result of the first judgment module is yes.
[0040] The password update module is used to modify the password information in the matched local account information to the password information in the cloud account information of the current user when the judgment result of the second judgment module is negative.
[0041] In conjunction with the first or second embodiment of the second aspect, in the third embodiment of the second aspect, the quick login device further includes:
[0042] The local authentication module is used to perform local authentication of the cloud account information of the currently logged-in user based on the local account information stored in advance.
[0043] The authorization module includes:
[0044] The first judgment unit is used to determine whether the cloud authentication result message sent from the cloud has been received within a preset time period after the sending module last sent the cloud account information of the current user login to the cloud authentication.
[0045] The second judgment unit is used to determine whether the received cloud authentication result message is a successful cloud authentication message when the judgment result of the first judgment unit is yes.
[0046] The authorization unit is used to save the cloud login credentials and authorize desktop operation permissions to the current user when the judgment result of the second judgment unit is yes;
[0047] The determining unit is used to determine that the current user's login has failed when the determination result of the second determining unit is negative.
[0048] In conjunction with the third implementation of the second aspect, in the fourth implementation of the second aspect, the authorization module further includes:
[0049] The third judgment unit is used to determine whether the number of retries i for requesting cloud authentication has reached the preset maximum number when the judgment result of the first judgment unit is negative; wherein, the initial value of i is 1;
[0050] The retry count update unit is used to set i = i + 1 when the judgment result of the third judgment unit is negative;
[0051] The triggering unit is used to trigger the sending module to send the cloud account information of the currently logged-in user to the cloud authentication for the i-th time after the retry number update unit updates the retry number i for requesting cloud authentication.
[0052] The fourth judgment unit is used to determine whether the local authentication of the local authentication module is successful when the judgment result of the third judgment unit is yes.
[0053] The authorization unit is further configured to grant desktop operation permissions to the current user when the judgment result of the fourth judgment unit is yes.
[0054] The determining unit is further configured to determine that the current user login has failed when the determination result of the fourth determining unit is negative.
[0055] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed within the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the quick login method described in any of the foregoing embodiments.
[0056] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement the quick login method described in any of the foregoing embodiments.
[0057] This invention provides a quick login method, device, and electronic device. First, the user logs into the target device using cloud account information. Then, the target device sends the cloud account information to the cloud for authentication. Finally, after receiving a successful authentication message from the cloud, the target device saves the cloud login credentials and authorizes desktop operation permissions to the user, thus achieving the goal of quick device login. This invention enables quick login to the target device using cloud account information and obtains the corresponding permissions from the cloud user, effectively improving the user experience when logging into the device. Attached Figure Description
[0058] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0059] Figure 1 A flowchart of a quick login method according to an embodiment of the present invention;
[0060] Figure 2 A flowchart of a second embodiment of a quick login method provided by the present invention;
[0061] Figure 3 This is a schematic diagram of a quick login device according to an embodiment of the present invention.
[0062] Figure 4 This is a schematic diagram of a second embodiment of a quick login device provided by the present invention;
[0063] Figure 5 This is a schematic diagram of a third embodiment of a quick login device provided by the present invention;
[0064] Figure 6 This is a schematic diagram of a fourth embodiment of a quick login device provided by the present invention;
[0065] Figure 7 This is a schematic diagram of a fifth embodiment of a quick login device provided by the present invention;
[0066] Figure 8 This is a schematic diagram of the structure of an electronic device provided by the present invention. Detailed Implementation
[0067] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0068] It should be understood that the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0069] Figure 1 This is a flowchart of an embodiment of a quick login method provided by the present invention. See also... Figure 1 The method includes the following steps S101-S103:
[0070] S101: Receives the cloud account information of the currently logged-in user.
[0071] In this embodiment, when the target device installs the operating system for the first time, it can register a cloud account, which will facilitate subsequent users to log in to the target device's operating system using the cloud account.
[0072] S102: Send the cloud account information of the currently logged-in user to the cloud for authentication.
[0073] The cloud storage contains pre-stored information on several registered cloud accounts.
[0074] In this embodiment, an authentication module PAM, specifically Linux-PAM, can be inserted. This is a shared library that allows local system administrators to freely choose the authentication method used by a program. In other words, the authentication mechanism can be changed without recompiling an application that includes PAM functionality. When a user logs into the device, the device's desktop login interface directly calls the operating system's Simple Desktop Display Manager (SDDM). SDDM then calls the PAM module, which in turn calls the self-developed user management service (user-manager service) via the dbus interface for cloud authentication. The user-manager service can call the authentication interface of the cloud account center via HTTP, thus sending cloud account information to the cloud for authentication, offering the advantage of simple implementation.
[0075] S103: Receive the authentication success message from the cloud, save the cloud login credentials, and authorize desktop operation permissions to the current user.
[0076] In this embodiment, after the user-manager service returns the cloud authentication result to the PAM module, it further passes it to SDDM. If the cloud authentication is successful, SDDM switches the login interface to the system desktop, thus granting desktop operation permissions to the current user.
[0077] As an optional embodiment, the account information includes account information and password information; before step S103, the following steps may also be included:
[0078] S1031: Determine whether there is a local account that matches the account information in the cloud account information of the currently logged-in user; otherwise, execute S1032.
[0079] S1032: Create a new local account with the same information as the cloud account that the current user is logged into.
[0080] In this embodiment, after successful cloud authentication, if no local account information is found, a new local account information identical to the cloud account information currently logged in by the user is created, and the corresponding password information is set to the cloud account password information currently logged in by the user. This automatically creates the local account information, so even if the device reinstalls the operating system, there is no need to reset the local account information, effectively improving the user's experience of logging into the device.
[0081] Preferably, after step S1031, the following steps S10311-S10312 may be included:
[0082] S10311: If there is a local account that matches the account information in the cloud account information logged in by the current user, then determine whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user; otherwise, execute S10312.
[0083] S10312: Modify the password information in the matched local account information to the password information in the cloud account information of the currently logged-in user.
[0084] In this embodiment, after successful cloud authentication, if it is found that the password information in the local account information is different from the password information in the cloud account information of the currently logged-in user, the local password information is automatically modified to the password information in the cloud account information. This achieves the goal of automatically modifying the local password and ensures the correctness of the local password.
[0085] This invention provides a quick login method. First, the user logs into the target device using cloud account information. Then, the target device sends the cloud account information to the cloud for authentication. Finally, after receiving a successful authentication message from the cloud, the target device saves the cloud login credentials and authorizes desktop operation permissions to the user, thus achieving the purpose of quick device login. This invention enables quick login to the target device using cloud account information and obtains the corresponding permissions of the cloud user, effectively improving the user experience when logging into the device.
[0086] Figure 2 This is a flowchart of a second embodiment of a quick login method provided by the present invention. See also... Figure 2 The method includes the following steps S201-S216:
[0087] S201: Receive the cloud account information of the currently logged-in user.
[0088] S202: Perform local authentication on the cloud account information of the currently logged-in user based on the local account information pre-stored locally.
[0089] S203: Send the cloud account information of the currently logged-in user to the cloud for authentication.
[0090] S204: Determine whether a cloud authentication result message has been received from the cloud within a preset time period since the last time the cloud account information of the current user was sent to the cloud for authentication; if yes, proceed to S205; otherwise, proceed to step S212.
[0091] S205: Determine whether the cloud authentication result message is a successful cloud authentication message. If yes, execute S207; otherwise, execute S206.
[0092] S206: It has been determined that the current user's login has failed.
[0093] S207: Determine whether there is a local account that matches the account information in the cloud account information of the currently logged-in user. If yes, execute S209; otherwise, execute S208.
[0094] S208: Create a new local account with the same information as the cloud account information currently logged in by the user, and then execute S211.
[0095] S209: Determine whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user. If yes, execute S211; otherwise, execute S210.
[0096] S210: Modify the password information in the matched local account information to the password information in the cloud account information of the currently logged-in user.
[0097] S211: Save the cloud login credentials and grant desktop operation permissions to the current user.
[0098] S212: Determine whether the number of retries i for cloud authentication has reached the preset maximum number; if yes, execute S214, otherwise execute S213.
[0099] The initial value of i is 1;
[0100] S213: Let i = i + 1; and send the cloud account information of the current user login to the cloud for authentication for the i-th time, and return to execute S204;
[0101] S214: Determine whether local authentication was successful. If yes, execute S215; otherwise, execute S216.
[0102] S215: Grant desktop operation permissions to the current user.
[0103] S216: It has been determined that the current user's login has failed.
[0104] Specifically, after step S215 or S216 is completed, the number of retries i for requesting cloud authentication is reset to the initial value so that it can be used to record the number of retries for requesting cloud authentication for the corresponding user's cloud account information when other users log in to the cloud account information.
[0105] In this embodiment, after steps S215 and S216 are completed, i needs to be restored to its initial value of 1 to facilitate the user's next login determination.
[0106] This invention provides a quick login method. First, the user logs into the target device using their cloud account information. Then, the target device uses SDDM to call the PAM module for local authentication and sends the cloud account information to the cloud for authentication. Next, a user-manager can handle the cloud authentication retry mechanism and timeout judgment. If cloud authentication times out, the result of local authentication is used. Finally, if local authentication is successful, desktop operation permissions are granted to the current user. This invention employs a dual authentication mechanism of local and cloud authentication during the user login process, ensuring a high success rate and speed of login authentication.
[0107] Corresponding to the quick login method provided in the embodiments of the present invention, the embodiments of the present invention also provide a quick login device. Figure 3 This is a schematic diagram of a quick login device according to an embodiment of the present invention. Figure 3 As shown, the device includes:
[0108] Receiver module 1 is used to receive the cloud account information of the currently logged-in user;
[0109] Sending module 2 is used to send the cloud account information of the currently logged-in user to the cloud for authentication; wherein, the cloud account information is pre-stored in the cloud.
[0110] Authorization module 3 is used to receive authentication success messages from the cloud, save cloud login credentials, and authorize desktop operation permissions to the current user.
[0111] The apparatus of this embodiment can be used to perform Figure 1 The technical solutions of the method embodiments shown are similar in principle and in effect, and will not be described again here.
[0112] Figure 4 This is a schematic diagram of a second embodiment of a quick login device provided by the present invention. The device in this embodiment... Figure 3 Based on the illustrated device structure, the account information further includes account information and password information; the device also includes:
[0113] The first judgment module 4 is used to determine whether there is local account information that matches the account information in the cloud account information of the currently logged-in user after the authorization module 3 receives the authentication success message from the cloud.
[0114] The local account creation module 5 is used to create a new local account that is identical to the cloud account information currently logged in by the user when the judgment result of the first judgment module 4 is negative.
[0115] The apparatus of this embodiment can be used to perform Figure 1 The technical solutions of the method embodiments shown are similar in principle and in effect, and will not be described again here.
[0116] Figure 5 This is a schematic diagram of a third embodiment of a quick login device provided by the present invention. The device in this embodiment... Figure 4 Based on the structure of the device shown, the device further includes:
[0117] The second judgment module 6 is used to determine whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user when the judgment result of the first judgment module 4 is yes.
[0118] The password update module 7 is used to modify the password information in the matched local account information to the password information in the cloud account information of the current user when the judgment result of the second judgment module 6 is negative.
[0119] The apparatus of this embodiment can be used to perform Figure 1 The technical solutions of the method embodiments shown are similar in principle and in effect, and will not be described again here.
[0120] Figure 6 This is a schematic diagram of a fourth embodiment of a quick login device provided by the present invention. The device in this embodiment... Figure 5 Based on the structure of the device shown, the device further includes:
[0121] The local authentication module 8 is used to perform local authentication of the cloud account information logged in by the current user based on the local account information stored locally in advance.
[0122] The authorization module 3 includes:
[0123] The first judgment unit 31 is used to determine whether the cloud authentication result message sent from the cloud has been received within a preset time period after the sending module 2 last sent the cloud account information of the current user login to the cloud authentication.
[0124] The second judgment unit 32 is used to determine whether the received cloud authentication result message is a successful cloud authentication message when the judgment result of the first judgment unit 31 is yes.
[0125] The authorization unit 33 is used to save the cloud login credentials and authorize the desktop operation permissions to the current user when the judgment result of the second judgment unit 32 is yes;
[0126] The determining unit 34 is used to determine that the current user login has failed when the judgment result of the second judging unit 32 is negative.
[0127] The apparatus of this embodiment can be used to perform Figure 2 The technical solutions of the method embodiments shown are similar in principle and in effect, and will not be described again here.
[0128] Figure 7 This is a schematic diagram of a fifth embodiment of a quick login device provided by the present invention. The device in this embodiment... Figure 6 Based on the device structure shown, the authorization module 3 further includes:
[0129] The third judgment unit 35 is used to determine whether the number of retries i for requesting cloud authentication has reached the preset maximum number when the judgment result of the first judgment unit 31 is negative; wherein, the initial value of i is 1.
[0130] The retry count update unit 36 is used to set i = i + 1 when the judgment result of the third judgment unit 35 is negative;
[0131] Triggering unit 37 is used to trigger sending module 2 to send the cloud account information of the currently logged-in user to cloud authentication for the i-th time after retry update unit 36 updates the retry count i for requesting cloud authentication.
[0132] The fourth judgment unit 38 is used to determine whether the local authentication of the local authentication module 8 is successful when the judgment result of the third judgment unit 35 is yes.
[0133] The authorization unit 33 is also used to authorize desktop operation permissions to the current user when the judgment result of the fourth judgment unit 38 is yes;
[0134] The determining unit 34 is also used to determine that the current user login has failed when the judgment result of the fourth judging unit 38 is negative.
[0135] The apparatus of this embodiment can be used to perform Figure 2 The technical solutions of the method embodiments shown are similar in principle and in effect, and will not be described again here.
[0136] This invention also provides an electronic device. Figure 8This invention provides a schematic diagram of the structure of an electronic device, which can realize the invention. Figure 1 and Figure 2 The process of the illustrated embodiment is as follows: Figure 8 As shown, the aforementioned electronic device may include: a housing 91, a processor 92, a memory 93, a circuit board 94, and a power supply circuit 95. The circuit board 94 is disposed inside the space enclosed by the housing 91, and the processor 92 and the memory 93 are disposed on the circuit board 94. The power supply circuit 95 is used to supply power to the various circuits or devices of the aforementioned electronic device. The memory 93 is used to store executable program code. The processor 92 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 93, for executing a quick login method as described in any of the foregoing embodiments.
[0137] This electronic device exists in various forms, including but not limited to:
[0138] (1) Mobile communication devices: These devices are characterized by their mobile communication capabilities and primarily aim to provide voice and data communication. These terminals include: smartphones (e.g., iPhones), multimedia phones, feature phones, and low-end phones, etc.
[0139] (2) Ultra-mobile personal computer devices: These devices fall under the category of personal computers, possessing computing and processing capabilities, and generally also have mobile internet access features. These terminals include PDAs, MIDs, and UMPCs, such as the iPad.
[0140] (3) Portable entertainment devices: These devices can display and play multimedia content. This category includes: audio and video playback modules (e.g., iPod), handheld game consoles, e-book readers, as well as smart toys and portable car navigation devices.
[0141] (4) Server: A device that provides computing services. The components of a server include a processor, hard disk, memory, system bus, etc. Servers are similar to general computer architectures, but because they need to provide highly reliable services, they have higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0142] (5) Other electronic devices with data interaction functions.
[0143] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement any of the quick login methods provided in the foregoing embodiments, thus achieving the corresponding technical effects. This has been described in detail above and will not be repeated here.
[0144] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0145] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0146] For ease of description, the above apparatus is described by dividing it into various functional units / modules. Of course, in implementing this invention, the functions of each unit / module can be implemented in one or more software and / or hardware.
[0147] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0148] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for fast login, characterized by, Applied to equipment, including: Receive the cloud account information of the currently logged-in user; The cloud account information of the currently logged-in user is sent to the cloud for authentication; wherein, the cloud account information is pre-stored in the cloud. Receive the authentication success message from the cloud, save the cloud login credentials, and authorize desktop operation permissions to the current user; Sending the currently logged-in cloud account information to the cloud for authentication includes: The desktop environment login interface calls the operating system's simple desktop display manager, and the simple desktop display manager calls the authentication interface of the cloud account center to send the cloud account information of the currently logged-in user to the cloud for authentication. After receiving the cloud account information of the currently logged-in user, the method further includes: Local authentication is performed on the cloud account information of the currently logged-in user based on the local account information pre-stored locally; The steps of receiving the authentication success message from the cloud, saving the cloud login credentials, and granting desktop operation permissions to the current user include: Determine whether a cloud authentication result message has been received from the cloud within a preset time period since the last time the cloud account information of the current user was sent to the cloud for authentication. If the cloud authentication result message from the cloud is not received within the preset time length, it is judged whether the retry number of requesting the cloud authentication reaches a preset maximum number i whether the preset maximum number is reached; wherein, i the initial value of the retry number is 1. If requesting cloud authentication requires a certain number of retries i Once the preset maximum number of attempts is reached, determine whether local authentication was successful. If local authentication is successful, desktop operation permissions will be granted to the current user.
2. The method of claim 1, wherein, The account information includes account information and password information; After receiving the authentication success message from the cloud and before saving the cloud login credentials and authorizing desktop operation permissions to the current user, the process also includes: Determine whether local account information exists that matches the account information in the cloud account information of the currently logged-in user; If no local account information exists that matches the account information in the cloud account information currently logged in by the user, then a new local account information that is identical to the cloud account information currently logged in by the user will be created.
3. The method of claim 2, wherein, After determining whether local account information exists that matches the account information in the cloud account information currently logged in by the user, the method further includes: If a local account exists that matches the account information in the cloud account information logged in by the current user, then it is determined whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user. If the password information in the matched local account information is different from the password information in the cloud account information currently logged in by the user, then the password information in the matched local account information will be modified to the password information in the cloud account information currently logged in by the user.
4. The shortcut login method of claim 2 or 3, wherein, After determining whether a cloud authentication result message has been received from the cloud within a preset time period after the last time the cloud account information of the current user login was sent to the cloud for authentication, the method further includes: If a cloud authentication result message is received from the cloud within a preset time period, determine whether the cloud authentication result message is a successful cloud authentication message. If the cloud authentication result message is a successful cloud authentication message, then save the cloud login credentials and authorize desktop operation permissions to the current user; If the cloud authentication result message is a cloud authentication failure message, then it is determined that the current user's login has failed.
5. The quick login method as described in claim 4, characterized in that, If the cloud authentication result message from the cloud is not received within a preset time length, it is judged whether the retry number of requesting cloud authentication reaches a preset maximum number i After it is judged whether the maximum number is reached, the method further comprises: If the number of retries for requesting cloud authentication i reaches a preset maximum number, the method i=i+ 1; i the cloud authentication server, and then returns a step of determining whether the cloud authentication result is received from the cloud authentication server within a preset time period since the time when the cloud authentication server is last sent the cloud account information of the current user. The retry number of the cloud authentication if requested i reaches the preset maximum number, the method further comprises: If local authentication fails, the current user's login is considered to have failed.
6. A quick login device, characterized in that, Applied to equipment, including: The receiving module is used to receive the cloud account information of the currently logged-in user; The sending module is used to send the cloud account information of the currently logged-in user to the cloud for authentication; wherein the cloud account information is pre-stored in the cloud. The authorization module is used to receive authentication success messages from the cloud, save cloud login credentials, and authorize desktop operation permissions to the current user; The device further includes: The local authentication module is used to perform local authentication of the cloud account information of the currently logged-in user based on the local account information stored in advance. The authorization module includes: The first judgment unit is used to determine whether the cloud authentication result message sent from the cloud has been received within a preset time period after the sending module last sent the cloud account information of the current user login to the cloud authentication. The third judgment unit is used to determine the number of retries for requesting cloud authentication when the judgment result of the first judgment unit is negative. i Has the preset maximum number of attempts been reached? i The initial value is 1; The fourth judgment unit is used to determine whether the local authentication of the local authentication module is successful when the judgment result of the third judgment unit is yes. The authorization unit is also used to grant desktop operation permissions to the current user when the judgment result of the fourth judgment unit is yes.
7. The quick login device as described in claim 6, characterized in that, The account information includes account information and password information; The device further includes: The first judgment module is used to determine whether there is local account information that matches the account information in the cloud account information logged in by the current user. The local account creation module is used to create a new local account with the same information as the cloud account currently logged in, when the judgment result of the first judgment module is negative.
8. The quick login device as described in claim 7, characterized in that, The device further includes: The second judgment module is used to determine whether the password information in the matched local account information is the same as the password information in the cloud account information logged in by the current user when the judgment result of the first judgment module is yes. The password update module is used to modify the password information in the matched local account information to the password information in the cloud account information of the current user when the judgment result of the second judgment module is negative.
9. The quick login device as described in claim 7 or 8, characterized in that, The authorization module also includes: The second judgment unit is used to determine whether the received cloud authentication result message is a successful cloud authentication message when the judgment result of the first judgment unit is yes. The authorization unit is further configured to, when the judgment result of the second judgment unit is yes, save the cloud login credentials and authorize the desktop operation permissions to the current user; The authorization module further includes a determination unit, used to determine that the current user login has failed when the determination result of the second determination unit is negative.
10. The quick login device as described in claim 9, characterized in that, The authorization module also includes: The retry count update unit is used to, when the judgment result of the third judgment unit is negative, set... i=i+ 1; The triggering unit is used to update the number of retries for cloud authentication requests in the retry update unit. i Then, the sending module is triggered. i The cloud account information of the currently logged-in user will then be sent to the cloud for authentication. The determining unit is further configured to determine that the current user login has failed when the determination result of the fourth determining unit is negative.
11. An electronic device, characterized in that, The electronic device includes: a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside the space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the quick login method according to any one of claims 1-5.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the quick login method according to any one of claims 1-5.