Account login method and device, electronic equipment and storage medium
By obtaining the preset expiration period and login duration of the account, short-term logins are allowed outside the preset period, and operation permissions are restricted, which solves the problem of account lockout after expiration and improves the user experience.
Patent Information
- Application Number
- CN202110930584.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2041-08-13
AI Technical Summary
In existing technologies, accounts are easily locked when they cannot log in outside the login period, which affects the user experience.
By obtaining the preset time limit and login duration of the target account, login is allowed if the login duration outside the preset time limit is less than the threshold, and forced logout is performed when the duration equals the threshold, thus restricting operation permissions and preventing logins that have exceeded the time limit.
This prevents accounts from being locked out of the login period, ensuring that users can still log in and perform necessary operations after the expiration date, thus improving the user experience.
Smart Images

Figure CN115879090B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of account security technology, and in particular to an account login method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the advancement of technology and the improvement of people's living standards, mobile phones, computers, and other electronic products have become indispensable tools in everyone's life.
[0003] Existing electronic products typically include multiple applications, each with its own account and password. To ensure account security, current technologies generally set login permissions to prevent data leaks. However, when login permissions include a login period, users who log in outside the specified period will be restricted from logging in, resulting in their accounts being locked. Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides an account login method, apparatus, electronic device and storage medium.
[0005] In a first aspect, embodiments of this disclosure provide a method for logging into an account, including:
[0006] Receive login actions triggered by the user for the target account;
[0007] A preset time limit for obtaining the target password corresponding to the target account;
[0008] If the login time of the target account is not within the preset period, then obtain the login duration of the target account outside the preset period;
[0009] If the login duration is less than a preset threshold, the target account is allowed to log in successfully.
[0010] Optionally, after successfully allowing the target account to log in, the method further includes:
[0011] If the login duration of the target account outside the preset period is equal to the preset threshold, the target account will be forcibly logged out.
[0012] Optionally, after allowing the target account to log in, the method further includes:
[0013] Obtain the operation permissions of the target account outside of a preset period, wherein the operation permissions of the target account outside of the preset period are less than the operation permissions of the target account within the preset period;
[0014] Respond to the user's actions based on the target account's corresponding operation permissions outside the preset period.
[0015] Optional, also includes:
[0016] If the login duration is greater than or equal to the preset threshold, then the target account is prohibited from logging in.
[0017] Optional, also includes:
[0018] The preset period for obtaining the target password corresponding to the target account is determined, and if the login time of the target account is within the preset period, the target account is allowed to log in successfully.
[0019] Optionally, the preset period for obtaining the target password corresponding to the target account, and determining that the login time of the target account is not within the preset period, includes:
[0020] The first preset time and the second preset time are used to obtain the target password corresponding to the target account;
[0021] The preset period is determined based on the first preset time and the second preset time.
[0022] Optionally, after successfully allowing the target account to log in, the method further includes:
[0023] Receive settings operations for the target account triggered by the user;
[0024] Display a list of target password settings corresponding to the target account.
[0025] Secondly, embodiments of this disclosure provide an account login device, including:
[0026] The target account login module is used to receive login operations triggered by the user for the target account;
[0027] The preset time limit acquisition module is used to acquire the preset time limit of the target password corresponding to the target account;
[0028] The login duration acquisition module is used to acquire the login duration of the target account outside the preset period if the login time of the target account is not within the preset period.
[0029] The login control module is used to allow the target account to log in successfully if the login duration is less than a preset threshold.
[0030] Thirdly, embodiments of this disclosure provide an electronic device, including:
[0031] One or more processors;
[0032] Storage device for storing one or more programs.
[0033] When the one or more programs are executed by the one or more processors, the one or more processors implement the login method for the account as described in any of the first aspects.
[0034] Fourthly, a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements a login method for an account as described in any of the first aspects.
[0035] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0036] The account login method, apparatus, electronic device, and storage medium provided in this disclosure, after receiving a user's login operation triggered by the target account, obtains the preset period of the target password corresponding to the target account. If the login time of the target account is not within the preset period, it obtains the login duration of the target account outside the preset period. If the login duration is less than a preset threshold, the target account is allowed to log in successfully. This ensures that when the target account logs in after the preset period has expired, and the login duration outside the preset period is less than the preset threshold, the target account is allowed to log in successfully. This guarantees that when the preset period login condition is set, the user can log in for a preset period after the target account expires, avoiding the user's account being locked due to logging in outside the preset period, which would affect the user experience. Attached Figure Description
[0037] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0038] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0039] Figure 1 This is a flowchart illustrating an account login method provided in an embodiment of this disclosure;
[0040] Figure 2 This is a flowchart illustrating another account login method provided in this embodiment of the disclosure;
[0041] Figure 3 This is a flowchart illustrating another account login method provided in this embodiment of the disclosure;
[0042] Figure 4 This is a flowchart illustrating another account login method provided in this embodiment of the disclosure;
[0043] Figure 5 This is a flowchart illustrating another account login method provided in this embodiment of the disclosure;
[0044] Figure 6 This is a schematic diagram of the structure of an account login device provided in an embodiment of this disclosure;
[0045] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation
[0046] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0047] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0048] For example, this disclosure provides a login method, apparatus, electronic device, and storage medium for an account. By acquiring the login operation of a target account triggered by a user, when the target account logs in outside a preset period, the target account is allowed to log in successfully. This avoids the problem of the target account being locked because the user forgets the account login period and cannot log in after the expiration. It ensures that the user can log in for a preset period of time after the target account expires, thereby modifying the login permissions of the target account.
[0049] The login method for the account disclosed herein is performed by an electronic device or an application, webpage, public account, etc., within the electronic device. The electronic device can be a tablet computer, mobile phone, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart TV, smart screen, high-definition TV, 4K TV, smart speaker, smart projector, etc. This disclosure does not impose any restrictions on the specific type of electronic device.
[0050] This disclosure does not limit the type of operating system used in electronic devices. Examples include Android, Linux, Windows, and iOS.
[0051] Based on the foregoing description, this disclosure will use an electronic device as an example and combine it with application scenarios to elaborate in detail on the account login method provided in this disclosure.
[0052] like Figure 1 As shown, the account login methods include:
[0053] S10, Receive login operation for target account triggered by user.
[0054] For example, the target account could be an account for logging into an application on an electronic device, or an account for logging into an application corresponding to a website address on the electronic device. The login operation could be, for example, the user clicking the login button after entering the username and password for the application in the username and password fields, or the user clicking the next button after entering the username and password for the application in the username and password fields.
[0055] S20. Preset time limit for obtaining the target password corresponding to the target account.
[0056] Specifically, the preset time limit includes the login period. When a user enters the corresponding account in the account field of the application, the entered account is the target account. The preset time limit for obtaining the target password corresponding to the target account is determined based on the login time of the target account to see if the target password is within the preset time limit. For example, if "abc" is entered in the account field and "123@123" is entered in the password field of the multimedia application on an electronic device, the target account is "abc" and the target password corresponding to the target account "abc" is "123@123". The preset time limit for obtaining the target password "123@123" corresponding to the target account "abc" is obtained, for example, 30 days.
[0057] S30. If the login time of the target account is not within the preset period, then obtain the login duration of the target account outside the preset period.
[0058] Optionally, a preset period for obtaining the target password corresponding to the target account can be set. If the login time of the target account is within the preset period, the target account can be allowed to log in successfully.
[0059] When a user triggers the login operation of the target account "abc", the system determines whether the target password "123@123" corresponding to the target account "abc" is within the preset period based on the current login time of the target account "abc". If the current login time of the target account "abc" is on the 31st day, it is determined that the current login time of the target password "123@123" corresponding to the target account "abc" is not within the preset period. If the current login time of the target account "abc" is on the 10th day, it is determined that the current login time of the target password "123@123" corresponding to the target account "abc" is within the preset period.
[0060] Specifically, the preset time limit includes the login period. When a user enters the corresponding account in the account field of the application, the account entered by the user is the target account. The login period of the target password corresponding to the target account is obtained, and the target password corresponding to the target account is determined based on the login time of the target account to determine whether the target password corresponding to the target account is within the preset time limit. For example, in the account field of an application (video / audio app) on an electronic device, "abc" is entered, and "123@123" is entered in the password field. At this time, the target account is "abc", and the target password corresponding to the target account "abc" is "123@123". By obtaining the preset time limit of the target password "123@123" corresponding to the target account "abc", for example, the preset time limit of the target password "123@123" corresponding to the target account "abc" is 30 days, when the user triggers the login operation of the target account "abc", it is determined whether the target password "123@123" corresponding to the target account "abc" is within the preset time limit based on the current login time of the target account "abc". If the current login time of the target account "abc" is the 20th day, it is determined that the current time is within the preset time limit. When it is determined that the current login time of the target account "abc" is within the preset time limit, the target account "abc" is allowed to log in successfully. If the current login time of the target account "abc" is on day 31, then it is determined that the current time is outside the preset period. When it is determined that the current login time of the target account "abc" is outside the preset period, then the login duration of the target account outside the preset period is obtained.
[0061] It should be noted that the preset period for the target password corresponding to the target account refers to the time during which the target account and the target password can be used to log in after the target account is registered. This is calculated based on the duration of each login session. For example, if the target account is registered and the target password can be used to log in for 30 days (the preset period is 30 days), and the first user login session lasts 20 days, then the user's second login session will be within the preset period, and therefore, the target account is allowed to log in. If the first user login session lasts 31 days, then the user's second login session will be outside the preset period. In this case, the login duration outside the preset period is recorded.
[0062] S40. If the login duration is less than the preset threshold, the target account is allowed to log in successfully.
[0063] Specifically, when it is determined that the login time of the target account is outside the preset period, the login duration of the target account outside the preset period is obtained. If the login duration of the target account outside the preset period is less than a preset threshold, the target account is allowed to log in successfully. For example, the preset period for the target account "abc" and the target password "123@123" is 30 days, and the preset threshold is 24 hours. When the target account "abc" logs in on the 31st day, it is determined that the login time of the target account "abc" is outside the preset period of 30 days. At this time, the login duration of the target account "abc" outside the preset period is obtained, that is, the login duration of the target account "abc" outside 30 days. If the total login duration of the target account "abc" outside 30 days is less than 24 hours, the target account "abc" is allowed to log in successfully.
[0064] It should be noted that, in this embodiment of the present disclosure, a preset threshold of 24 hours is used as an example for illustration. When a user triggers the login operation of the target account for the first time outside the preset period, the time from the time when the user first triggers the login operation of the target account outside the preset period is taken as the starting point until the user logs out of the target account. During this period, the login time of the target account outside the preset period is less than the preset threshold, and the target account is allowed to log in successfully.
[0065] The account login method provided in this embodiment, after receiving a user's login operation for a target account, obtains the preset time limit of the target password corresponding to the target account. If the login time of the target account is not within the preset time limit, it obtains the login duration of the target account outside the preset time limit. If the login duration is less than a preset threshold, the target account is allowed to log in successfully. This ensures that when the target account logs in after the preset time limit has expired, and the login duration of the target account outside the preset time limit is less than the preset threshold, the target account is allowed to log in successfully. This guarantees that when the preset time limit login condition is set, the user can log in for a preset time after the target account expires, avoiding the user's account being locked due to logging in outside the preset time limit, which would affect the user experience.
[0066] Figure 2 This is a flowchart illustrating another account login method provided in this embodiment. This embodiment is based on the above embodiment, and further includes the following after step S40:
[0067] S50. If the login duration of the target account outside the preset period is equal to the preset threshold, the target account will be forcibly logged out.
[0068] Specifically, when it is determined that the target account's login time is outside the preset period, the login duration of the target account outside the preset period is obtained. If the login duration of the target account outside the preset period is less than a preset threshold, the target account is allowed to log in successfully. After allowing the target account to log in successfully, if the login duration of the target account outside the preset period is equal to the preset threshold, the target account is forcibly logged out. For example, the target password for the target account "abc" is "123@123". The preset time limit is 30 days, and the preset threshold is 24 hours. When the target account "abc" logs in on the 31st day, it is determined that the login time of the target account "abc" is not within the preset time limit of 30 days. At this time, the login duration of the target account "abc" outside the preset time limit is obtained, that is, the login duration of the target account "abc" outside the 30 days. If the total login duration of the target account "abc" outside the 30 days is less than 24 hours, then the target account "abc" is allowed to log in successfully. After the target account "abc" logs in successfully, if the total login duration of the target account "abc" outside the 30 days is equal to the online login duration of 24 hours, then the target account "abc" is forcibly logged out. For example, the total login duration of the target account "abc" outside the 30 days is 12 hours. After the target account "abc" is allowed to log in successfully, if the online login duration of the target account "abc" meets 12 hours, then the target account is forcibly logged out.
[0069] It should be noted that, in this embodiment of the disclosure, the target account "abc" has logged in for a total of 12 hours in the past 30 days. That is, the target account "abc" has already logged in for 12 hours in the past 30 days before this login. If the target account "abc" has logged in for 12 hours in this login, the target account will be forcibly logged out. If the target account "abc" has logged in for less than 12 hours in this login and logs out, the target account "abc" can still log in the next time it logs in.
[0070] The account login method provided in this embodiment of the present disclosure forcibly logs out the target account when the login time of the target account outside the preset period is equal to the preset period, so as to avoid affecting the security of the target account due to the excessive login time outside the preset period.
[0071] Optionally, if the login duration is greater than or equal to a preset threshold, the target account will be blocked from logging in.
[0072] When it is determined that the login time of the target account is outside the preset period, the login duration of the target account outside the preset period is obtained. If the login duration of the target account outside the preset period is greater than or equal to a preset threshold, the target account is prohibited from logging in. For example, the preset period for the target account "abc" and the target password "123@123" is 30 days, and the preset threshold is 24 hours. When the target account "abc" logs in on the 31st day, it is determined that the login time of the target account "abc" is outside the preset period of 30 days. At this time, the login duration of the target account "abc" outside the preset period is obtained, that is, the login duration of the target account "abc" outside 30 days. If the total login duration of the target account "abc" outside 30 days is greater than or equal to 24 hours, the target account "abc" is prohibited from logging in.
[0073] Figure 3 This is a flowchart illustrating another account login method provided in this disclosure. This embodiment is based on the above embodiment, and further includes the following after step S40:
[0074] S60. Obtain the target account's corresponding operation permissions outside the preset period.
[0075] The target account's operating permissions outside the preset period are less than its operating permissions within the preset period.
[0076] Specifically, after allowing the target account to log in, the system obtains the corresponding operation permissions for the target account outside of a preset period. For example, the operation permissions for the target account outside of the preset period could be the preset period for modifying the target password for the target account, or it could be the preset period for modifying the login duration of the target account outside of the preset period.
[0077] It should be noted that setting the target account's operational permissions outside the preset period to be less than those within the preset period can ensure the security of the target account and prevent the target account from being compromised if some operational permissions are modified outside the preset period.
[0078] For example, the operation permissions corresponding to the target account within the preset period may include allowing operations such as modifying, deleting, or sharing the target file, while the operation permissions corresponding to the target account outside the preset period may include only allowing the sharing of the target file. Furthermore, the operation permissions corresponding to the target account within and outside the preset period may also include: a preset period for modifying the target password corresponding to the target account, or modifying the login duration of the target account outside the preset period.
[0079] S70. Respond to the user's operation based on the target account's corresponding operation permissions outside the preset period.
[0080] After obtaining the operation permissions corresponding to the target account outside the preset period, the system responds to the user's actions based on these permissions. If the operation permissions corresponding to the target account outside the preset period include modifying the preset period for changing the target password and modifying the login duration outside the preset period, then the user's actions include either modifying the preset period for changing the target password or modifying the login duration outside the preset period. When the user changes the preset period for changing the target password from 30 days to 60 days, the operation permissions corresponding to the target account outside the preset period are modified, meaning the preset period for the target account is changed to 60 days. When logging out of the target account and logging in again, if the login time for the target account is no longer within the preset period, the preset period is set to 60 days. For example, the preset time limit for the target password "123@123" corresponding to the target account "abc" is 60 days. When the user triggers the login operation of the target account "abc", it is determined whether the target password "123@123" corresponding to the target account "abc" is within the preset time limit based on the current login time of the target account "abc". If the current login time of the target account "abc" is on the 61st day, it is determined that the current time is not within the preset time limit. If the current login time of the target account "abc" is on the 31st day, it is determined that the current time is within the preset time limit.
[0081] It should be noted that, in this embodiment of the disclosure, the user's operation is exemplified as modifying the target password corresponding to the target account for a preset period. It can also be modifying the login duration of the target account outside the preset period. This embodiment of the disclosure does not specifically limit this.
[0082] The account login method provided in this embodiment limits the operation permissions of the target account outside a preset period to be less than the operation permissions of the target account within the preset period. When the target account is allowed to log in successfully, the operation permissions of the target account outside the preset period are obtained, and the user's operation is responded to according to the operation permissions of the target account outside the preset period, so as to ensure that the user can respond to the user's operation outside the preset period.
[0083] Figure 4 This is a flowchart illustrating another account login method provided in this disclosure. This embodiment is based on the above embodiments, wherein one possible implementation of step S20 includes:
[0084] S21. Obtain the target password corresponding to the target account at the first and second preset times.
[0085] Specifically, the first preset time for the target password corresponding to the target account is the time when the target account was first activated, and the second preset time is the time when the target password corresponding to the target account was allowed to log in for the last time.
[0086] S22. Determine the preset time period based on the first preset time and the second preset time.
[0087] Once the first and second preset times for obtaining the target password corresponding to the target account are obtained, the preset time limit is determined by calculating the difference between the first and second preset times.
[0088] If the login time of the target account is later than the second preset time or earlier than the first preset time, it can be determined that the login time of the target account is not within the preset period. When the login time of the target account is earlier than the first preset time, since the target account is not activated at this time, after entering the target password corresponding to the target account, it will be displayed that the target account is not activated. When the login time of the target account is later than the second preset time, it can be determined that the login time of the target account is not within the preset period. At this time, step S30 will continue to be executed to obtain the login duration of the target account outside the preset period. If the login duration is less than the preset threshold, the target account is allowed to log in successfully.
[0089] The account login method provided in this embodiment obtains a first preset time and a second preset time corresponding to the target password of the target account, then determines a preset period based on the first preset time and the second preset time, and finally determines whether the login time of the target account is within the preset period based on the login time of the target account.
[0090] Figure 5 This is a flowchart illustrating another account login method provided in this disclosure. This embodiment is based on the above embodiment, and further includes the following after step S40:
[0091] S80: Receive settings operations for the target account triggered by the user.
[0092] Once the target account is successfully allowed to log in, the user clicks the settings button for the target account. At this time, the system responds to the user's request to open the settings for the target account and opens the settings list.
[0093] S90. Display the list of target password settings corresponding to the target account.
[0094] The target password settings list for the target account includes password attributes, password login attempts, and password history deduplication counts. Password attributes include total password length and password elements. The default total password length is 12 characters, but this can be customized. Password elements default to lowercase letters and numbers, but can be customized with combinations such as lowercase letters, uppercase letters, numbers, and special symbols. Password login attempts refer to the number of times a password has been entered incorrectly within a certain time frame. The default is 5 attempts, but this can be customized to any value from 1 to 32. Password history deduplication counts refer to checking whether a new password is a recently used password. By default, historical passwords are not checked. When checking historical passwords, for example, "The most recent X passwords are invalid," where X is the number of times different passwords have been set recently. A maximum value of 12 for X is recommended.
[0095] It should be noted that the target account's operational permissions outside the preset period include the ability to modify the target account's password settings list.
[0096] The account login method provided in this embodiment of the present disclosure, after the target account is logged in, receives the setting operation of the target account triggered by the user and displays the setting list of the target password corresponding to the target account. By modifying the target password corresponding to the target account, the operation permissions of the target account outside the preset period can be modified.
[0097] Figure 6 This is a schematic diagram of the structure of an account login device provided in an embodiment of this disclosure, as shown below. Figure 6 As shown, the account login device includes:
[0098] The target account login module 710 is used to receive login operations for the target account triggered by the user.
[0099] The preset time limit acquisition module 720 is used to acquire the preset time limit of the target password corresponding to the target account.
[0100] The login duration acquisition module 730 is used to acquire the login duration of the target account outside the preset period if the login time of the target account is not within the preset period.
[0101] The login control module 740 is used to allow the target account to log in successfully if the login duration is less than a preset threshold.
[0102] The account login device provided in this embodiment includes a target account login module that receives a user-triggered login operation for a target account, a preset period acquisition module that acquires the preset period of the target password corresponding to the target account, a login duration acquisition module that acquires the login duration of the target account outside the preset period when the login time of the target account is not within the preset period, and a login control module that allows the target account to log in successfully if the login duration is less than a preset threshold. This ensures that when the login condition of the target account is set with a preset period, the user can log in for a preset duration after the target account expires.
[0103] Optionally, the account login device may also include:
[0104] The target account logout module is used to force the target account to log out if the login time of the target account outside the preset period is equal to the preset threshold.
[0105] Optionally, the account login device may also include:
[0106] The operation permission acquisition module is used to acquire the operation permissions of the target account outside of a preset period, wherein the operation permissions of the target account outside of the preset period are less than the operation permissions of the target account within the preset period.
[0107] The response module is used to respond to user actions based on the target account's corresponding operation permissions outside of a preset period.
[0108] Optionally, the account login device may also include:
[0109] The "Disable Login" module is used to prevent a target account from logging in if the login duration is greater than or equal to a preset threshold.
[0110] Optionally, the preset time limit acquisition module includes:
[0111] The preset time acquisition unit is used to acquire the first preset time and the second preset time of the target password corresponding to the target account.
[0112] The preset time limit determination unit is used to determine the preset time limit based on the first preset time and the second preset time.
[0113] It is worth noting that in the embodiments of the above-mentioned account login device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0114] The account login device provided in this embodiment of the invention can execute the account login method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0115] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure, such as... Figure 7 As shown, the electronic device includes a processor 810, a memory 820, an input device 830, and an output device 840; the number of processors 810 in the electronic device can be one or more. Figure 7 Taking a processor 810 as an example; the processor 810, memory 820, input device 830, and output device 840 in an electronic device can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.
[0116] The memory 820, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the object recommendation method in this embodiment of the invention. The processor 810 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 820, thereby implementing the account login method provided in this embodiment of the invention.
[0117] The memory 820 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, the memory 820 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, the memory 820 may further include memory remotely located relative to the processor 810, which can be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0118] The input device 830 can be used to receive input digital or character information and generate key signal inputs related to user settings and function control of electronic devices, and may include a keyboard, mouse, etc. The output device 840 may include display devices such as a display screen.
[0119] This disclosure also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to implement the account login method provided in this embodiment of the invention.
[0120] Of course, the computer-executable instructions provided in the embodiments of the present invention are not limited to the method operations described above, but can also perform related operations in the account login method provided in any embodiment of the present invention.
[0121] This disclosure also provides a computer program product that, when run on a computer, causes the computer to execute the account login method of the application described in the preceding embodiments.
[0122] In the above embodiments, all or part of the functionality can be implemented by software, hardware, or a combination of software and hardware. When implemented using software, it can be implemented wholly or partially in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or functionality according to the embodiments of this disclosure is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0123] 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.
[0124] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for logging into an account, characterized in that, include: Receive login actions triggered by the user for the target account; A preset time limit for obtaining the target password corresponding to the target account; If the login time of the target account is not within the preset period, then obtain the login duration of the target account outside the preset period; If the login duration is less than a preset threshold, the target account is allowed to log in successfully. After allowing the target account to log in, the process also includes: Obtain the operation permissions of the target account outside of a preset period, wherein the operation permissions of the target account outside of the preset period are less than the operation permissions of the target account within the preset period, and the operation permissions outside of the preset period include the preset period for modifying the target password or the login duration of the target account outside of the preset period; Respond to the user's actions based on the target account's corresponding operation permissions outside the preset period.
2. The method according to claim 1, characterized in that, After successfully allowing the target account to log in, the process also includes: If the login duration of the target account outside the preset period is equal to the preset threshold, the target account will be forcibly logged out.
3. The method according to claim 1 or 2, characterized in that, Also includes: If the login duration is greater than or equal to the preset threshold, then the target account is prohibited from logging in.
4. The method according to claim 1, characterized in that, Also includes: The preset period for obtaining the target password corresponding to the target account is determined, and if the login time of the target account is within the preset period, the target account is allowed to log in successfully.
5. The method according to claim 1, characterized in that, The preset time limit for obtaining the target password corresponding to the target account includes: The first preset time and the second preset time are used to obtain the target password corresponding to the target account; The preset period is determined based on the first preset time and the second preset time.
6. The method according to claim 1 or 2, characterized in that, After successfully allowing the target account to log in, the process also includes: Receive settings operations for the target account triggered by the user; Display a list of target password settings corresponding to the target account.
7. A login device for an account, characterized in that, include: The target account login module is used to receive login operations triggered by the user for the target account; The preset time limit acquisition module is used to acquire the preset time limit of the target password corresponding to the target account; The login duration acquisition module is used to acquire the login duration of the target account outside the preset period if the login time of the target account is not within the preset period. The login control module is used to allow the target account to log in successfully if the login duration is less than a preset threshold. The device further includes: An operation permission acquisition module is used to acquire the operation permissions of the target account outside a preset period, wherein the operation permissions of the target account outside the preset period are less than the operation permissions of the target account within the preset period, and the operation permissions outside the preset period include the preset period for modifying the target password or the preset period for modifying the login duration of the target account outside the preset period. The response module is used to respond to the user's operation based on the operation permissions corresponding to the target account outside a preset period.
8. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the account login method as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the account login method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Single-point sign-on method and system for multi-service Internet website
CN106302479A
Information safety control method and system based on storage management system
CN107229868A