CN112165493B - Identity login switching method and device, computer equipment and storage medium - Google Patents

Identity login switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112165493B
CN112165493B CN202011063167.4A CN202011063167A CN112165493B CN 112165493 B CN112165493 B CN 112165493B CN 202011063167 A CN202011063167 A CN 202011063167A CN 112165493 B CN112165493 B CN 112165493B
Authority
CN
China
Prior art keywords
identity
login
level weight
password
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011063167.4A
Other languages
Chinese (zh)
Other versions
CN112165493A (en
Inventor
陆泽能
杨颖琪
唐浩诚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Shanju E Commerce Co ltd
Original Assignee
Huizhou Shanju E Commerce Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Shanju E Commerce Co ltd filed Critical Huizhou Shanju E Commerce Co ltd
Priority to CN202011063167.4A priority Critical patent/CN112165493B/en
Publication of CN112165493A publication Critical patent/CN112165493A/en
Application granted granted Critical
Publication of CN112165493B publication Critical patent/CN112165493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/105Multiple levels of security

Abstract

The application provides an identity login switching method and device, computer equipment and a storage medium. The method comprises the steps of obtaining an identity level weight of a login account; detecting whether the identity level weight is matched with a preset value; when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval; and acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity of the login account. After the level weight difference interval of the login account is obtained, the login identities in the interval are correspondingly displayed according to the level weight difference interval, so that the login identities corresponding to the login account can be conveniently screened, the selection quantity of the login identities of the login account is reduced, the time consumed for selecting the login identities is reduced, the selection efficiency of the login identities is improved, and the login identities of the login account can be conveniently and quickly selected.

Description

Identity login switching method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of data logging, in particular to an identity login switching method, an identity login switching device, computer equipment and a storage medium.
Background
With the increasing progress of social informatization and the increasing popularity of network applications, the problem of information visualization becomes a powerful direction for research in the field of contemporary information management-network space information is becoming a subject and a basis for various information-based systems and applications, and the research on the spatial characteristics of network information expression is an important content. Information visualization opens a way to recognize the spatial characteristics of network information from a new perspective. The core idea of visualization is to introduce the real space form into the Internet, break through the space concept which is only expressed by characters, diagrams, data and videos and is possessed by the original network, and directly combine and superpose the real space and the virtual space to form a new space expression mode. The expression reveals multidimensional characteristics of information in a network space, and network information distribution is visualized.
With the rapid development of modern living industry and the accelerated pace of life, the traditional mode is that a client arrives at a house source to investigate on the spot, and the cost of communication between two parties is increased. The existing software for making the client know the house source condition is developed, and the transmission of the non-spatial information to the user through the interactive system is actually an effective information feedback cycle process, wherein corresponding to the record of the house purchasing condition of the client, the corresponding preparation software is required to prepare, so as to realize the arrangement of the client data and the corresponding strategy adjustment.
However, in the conventional customer backup software, at a login interface, a corresponding role identity needs to be selected from a plurality of roles for login, wherein more meaningless roles are included and displayed on the login interface, so that an operator needs to spend more time in selecting the identity for login, and when the roles are similar in name, the operator is easy to select by mistake, and therefore needs to quit and reselect the login identity, so that the use convenience of the customer backup software is reduced, and the use efficiency of the operator is seriously reduced.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides an identity login switching method, an identity login switching device, computer equipment and a storage medium, wherein the identity login switching method and the identity login switching device are convenient for quickly selecting a login identity.
The purpose of the invention is realized by the following technical scheme:
an identity login switching method, the method comprising:
acquiring an identity level weight of a login account;
detecting whether the identity level weight is matched with a preset value;
when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval;
and acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity of the login account.
In one embodiment, the obtaining the identity level weight of the login account includes: acquiring at least one first identity level weight of a login account; obtaining a maximum weight of at least one of the first identity weights, wherein the maximum weight is the identity weight.
In one embodiment, the detecting whether the identity level weight matches a preset value further includes: detecting whether the identity level weight is larger than an initial level weight; and when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system.
In one embodiment, the detecting whether the identity level weight is greater than an initial level weight includes: detecting whether the identity level weight is greater than 0; when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system, including: and when the identity level weight is equal to 0, sending an identity record adding signal to the login management system so as to add the identity information of the login account.
In one embodiment, when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system, further includes: and when the identity level weight is less than 0, sending an identity resetting signal to the login management system so as to reset and supplement the identity information of the login account.
In one embodiment, the detecting whether the identity level weight matches a preset value includes: detecting whether the identity level weight is greater than or equal to a management level weight; when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval, including: and when the identity level weight is greater than or equal to the management level weight, comparing the identity level weight with the management level weight to obtain a management level weight difference interval.
In one embodiment, the detecting whether the identity level weight is greater than or equal to a management level weight further comprises: and when the identity-level weight is smaller than the management-level weight, acquiring and displaying the login identity corresponding to the identity-level weight.
An identity login switching apparatus, the apparatus comprising:
the acquisition module is used for acquiring the identity level weight of the login account;
the detection module is used for detecting whether the identity level weight is matched with a preset value; when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval;
and the display module is used for acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity by the login account.
A computer device comprising a memory storing a computer program and a processor implementing the following steps when the computer program is executed:
acquiring an identity level weight of a login account;
detecting whether the identity level weight is matched with a preset value;
when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval;
and acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity of the login account.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an identity-level weight of a login account;
detecting whether the identity level weight is matched with a preset value;
when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval;
and acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity of the login account.
Compared with the prior art, the invention has at least the following advantages:
the identity level weights of the login accounts are matched, namely the identity level weights of the login accounts are divided, after the level weight difference interval of the login accounts is obtained, all login identities in the interval are correspondingly displayed according to the level weight difference interval, the login identities corresponding to the login accounts are conveniently screened, only the login identities corresponding to the login accounts are displayed, the number of the login identities to the login accounts is reduced, the pertinence of the login identities to the login accounts is improved, the time consumed by selecting the login identities is reduced, the selection efficiency of the login identities is improved, and the login identities of the login accounts can be conveniently and rapidly selected.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic flowchart illustrating an identity login switching method according to an embodiment;
FIG. 2 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully hereinafter with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only and do not denote a single embodiment.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The invention relates to an identity login switching method. In one embodiment, the identity login switching method comprises the steps of obtaining an identity level weight of a login account; detecting whether the identity level weight is matched with a preset value; when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval; and acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity of the login account. The identity level weights of the login accounts are matched, namely the identity level weights of the login accounts are divided, after the level weight difference interval of the login accounts is obtained, the login identities in the interval are correspondingly displayed according to the level weight difference interval, the login identities corresponding to the login accounts are conveniently screened, the login identities corresponding to the login accounts are only displayed, the number of the login identities selected from the login accounts is reduced, the pertinence to the login identities of the login accounts is improved, the time consumed by the login identity selection is reduced, the login identity selection efficiency is improved, and the login identities of the login accounts can be conveniently and quickly selected.
Please refer to fig. 1, which is a flowchart illustrating an identity login switching method according to an embodiment of the present invention. The identity login switching method comprises part or all of the following steps.
S100: and acquiring the identity-level weight of the login account.
In this embodiment, the identity level weight is a level corresponding to each login account, and the identity level weight is used to reflect the level of each login account, that is, the identity level weight is used to reflect the level of the authority that each login account can use, which is convenient for performing targeted services on different login accounts, thereby facilitating display of different information on different login accounts, facilitating subsequent selection of login identities of login accounts, facilitating improvement of selection efficiency of login identities of login accounts, and reducing complexity of selection of login identities of login accounts.
S200: and detecting whether the identity level weight is matched with a preset value.
In this embodiment, the preset value corresponds to an identity level weight with a distinction degree, and the preset value is used to distinguish accounts with different identity level weights, for example, the preset value is used to distinguish a general login account from a special login account, that is, the preset value is greater than the identity level weight corresponding to the general login account, and the preset value is smaller than the identity level weight corresponding to the special login account. Therefore, the authority of the login account can be determined by comparing the identity level weight values subsequently, and different login identities can be distributed to different login accounts subsequently. Moreover, the preset values can be adjusted correspondingly according to actual conditions, so that a plurality of different preset values can be set for the login account, and the identity level weight for improving or reducing the priority of the login account is distinguished.
S300: and when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval.
In this embodiment, the identity level weight matches the preset value, which indicates that the level weight corresponding to the login account matches the level weight corresponding to the preset value, that is, indicates that the level weight of the current login account is a high level weight and has a higher authority. The login user usually has multiple identities, in order to screen the more important identity roles therein, that is, to reduce the login identities displayed subsequently, so as to reduce the complexity of selecting login identities, that is, to facilitate the subsequent quick selection of the required login identities, the identity level weight is compared with the preset value, and the level difference value interval is obtained according to the difference between the identity level weight and the preset value, wherein the level difference value interval includes the identity level weight corresponding to the login account, and also includes the preset value, that is, the level difference value interval is a closed interval with the identity level weight and the preset value as endpoints. Therefore, the login identity required by the current login account is limited in the level weight difference value interval, the login identity which is not in the level weight difference value interval is not displayed any more, the corresponding login identity is conveniently displayed according to the level weight difference value interval in the follow-up process, the display quantity of the login identity is reduced, the display of the login identity is displayed in a key mode, and the selection efficiency of the login identity is improved.
S400: and acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity of the login account.
In this embodiment, the level weight is a level of the login account and a level weight value converted correspondingly to the authority, that is, the level weight is a value corresponding to the level of the login account and the authority. All login identities in the level weight difference value interval are displayed, and login identities smaller than the preset value are not displayed, so that the required login identities are displayed, the display of the unnecessary login identities is reduced, the complexity of login identity selection is reduced, the time of login identity selection is shortened, and the login identity selection efficiency is improved.
In the embodiment, the identity level weights of the login accounts are matched, that is, the identity level weights of the login accounts are divided, after the level weight difference interval of the login accounts is obtained, the login identities in the interval are correspondingly displayed according to the level weight difference interval, the login identities corresponding to the login accounts are conveniently screened, so that only the login identities corresponding to the login accounts are displayed, the selection number of the login identities of the login accounts is reduced, the pertinence of the login identities of the login accounts is improved, the time consumed for selecting the login identities is reduced, the selection efficiency of the login identities is improved, and the login identities of the login accounts can be conveniently and quickly selected.
In one embodiment, the obtaining the identity level weight of the login account includes: acquiring at least one first identity level weight of a login account; obtaining a maximum weight of at least one of the first identity weights, wherein the maximum weight is the identity weight. In this embodiment, the identity level weight is a maximum value of the identity level weights corresponding to the login account, that is, the identity level weight is a numerical value corresponding to a highest level weight of the login account. Therefore, by acquiring the highest-level right of the login account, the acquisition of each login identity corresponding to the login account is facilitated, the loss of part of login identities of the login account is avoided, the integrity of all login identities of the login account is ensured, and the integrity of each login identity of the login account is improved.
In one embodiment, the detecting whether the identity level weight matches a preset value further includes: detecting whether the identity level weight is larger than an initial level weight; and when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system. In this embodiment, the initial level weight corresponds to an initial level weight in all login identities, for example, a newly registered login account needs to be confirmed because it is initially registered, so as to allocate the authority of the login account, that is, to determine the level weight of the newly registered login account. The identity level weight is less than or equal to the initial level weight, which indicates that the current login account is a newly registered login account and has no distributed authority, i.e. the current login account needs to determine the level right. In this way, when the current login account is determined to be the newly registered login account, the identity entry signal is sent to the login management system, so that the level right and the authority of the current login account are distributed conveniently, that is, the level right of the current login account is registered and entered, and the current login account obtains the corresponding level right. The allocation of the identity level weight needs to be determined by personal information in the login account, for example, information such as name, identity number, and mobile phone number of the login account.
Further, the detecting whether the identity level weight is greater than the initial level weight includes: detecting whether the identity level weight is greater than 0; when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system, including: and when the identity level weight is equal to 0, sending an identity record increasing signal to the login management system so as to add the identity information of the login account. In this embodiment, the initial-level weight corresponds to initial-level weights in all login identities, and the initial-level weight is adjusted to 0, so that the identity-level weights can be conveniently distinguished between positive and negative, and the difficulty in comparing the identity-level weights is reduced. For example, since the newly registered login account is initially registered, that is, the initial level weight is equal to 0, where the initial level weight is 0, it indicates that the newly registered login user is a user who has not previously registered, and needs to confirm the identity of the newly registered login user, so as to allocate the authority of the login account, that is, to determine the level weight of the newly registered login account. The identity level weight value is less than or equal to 0, which indicates that the current login account is a newly registered login account and has no authority assigned yet, i.e. the current login account needs to determine the level weight. In this way, when the current login account is determined to be the newly registered login account, the identity entry signal is sent to the login management system, so that the level right and the authority of the current login account are distributed conveniently, that is, the level right of the current login account is registered and entered, and the current login account obtains the corresponding level right. The allocation of the identity-level weight needs to be determined by the personal information in the login account, for example, the name, the identity number, the mobile phone number, and other information of the login account.
Further, when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to the login management system, further comprising: and when the identity level weight is less than 0, sending an identity resetting signal to the login management system so as to reset and supplement the identity information of the login account. In this embodiment, the initial-level weight corresponds to initial-level weights in all login identities, and the initial-level weight is adjusted to 0, so that the positive and negative identity-level weights are conveniently distinguished, and the difficulty in comparing the identity-level weights is reduced. For example, since a re-registered login account is a secondary registration, that is, the primary level weight is less than 0, where the primary level weight is 0, it indicates that the registered login user is a previously registered user, and needs to perform identity re-confirmation on the registered login user, so as to perform secondary allocation on the authority of the login account, i.e., to perform re-confirmation on the level weight of the registered login account. The identity level weight value is less than 0, which indicates that the current login account is a re-registered login account, and since the current login account has the assigned right before, that is, the current login account needs to re-determine the level right, the confusion of level right management caused by the fact that the previous level right is used is avoided. In this way, when the current login account is determined to be the login account which is registered again, the identity resetting signal is sent to the login management system, so that the level right and the authority of the current login account are redistributed, namely, the level right of the current login account is re-registered and input, and the current login account obtains the accurate level right. The allocation of the identity-level weight needs to be determined by the personal information in the login account, for example, the name, the identity number, the mobile phone number, and other information of the login account.
In one embodiment, the detecting whether the identity level weight matches a preset value includes: detecting whether the identity level weight is greater than or equal to a management level weight; when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval, including: and when the identity level weight is greater than or equal to the management level weight, comparing the identity level weight with the management level weight to obtain a management level weight difference interval. In this embodiment, the management-level weight is used to distinguish the login account of the management layer from the login account of the non-management layer, and the management-level weight is greater than the initial-level weight, the initial-level weight is used to distinguish the new and old registered login users, and the management-level weight is used to perform secondary classification on the old registered login users, so as to facilitate management of the login accounts of different levels of weights, facilitate display of corresponding login identities on the login accounts of the management layers of different levels of weights, reduce display of unnecessary login identities, reduce complexity in selecting the login identities of the login accounts of the management layer, and further improve efficiency in selecting the login identities of the login accounts of the management layer.
Further, the detecting whether the identity level weight is greater than or equal to a management level weight further includes: and when the identity-level weight is smaller than the management-level weight, acquiring and displaying the login identity corresponding to the identity-level weight. In this embodiment, the identity level weight is smaller than the management level weight, which indicates that the identity level weight corresponding to the current login account is lower than the management level weight, that is, the identity level weight corresponding to the current login account is lower than the identity level weight corresponding to the login account of the management layer, that is, the current login account is a common login account but not the login account of the management layer. The login account of the management layer corresponds to a plurality of login roles, and the login role corresponding to the common login account is one, namely, the login roles corresponding to the common login account correspond to one another. In this way, in order to reduce the display of the login roles of other common login accounts or the login role of the management layer by the common login account, only the login role corresponding to the common login account itself needs to be displayed correspondingly, and the situation that the number of login roles displayed by the common login account is too many is effectively reduced. In the above embodiment, the common login accounts are also classified into a plurality of types, that is, different login roles of different common login accounts correspond to different basic roles, and because the number of login roles corresponding to the basic roles is large and the login roles are relatively single, the login roles of the common login accounts are displayed in one-to-one correspondence, thereby avoiding the situation that the login roles displayed by the common login accounts are too many, and further improving the selection efficiency of the login roles of all the login accounts.
It can be understood that, when logging in an identity, identity information and a password of a login account need to be input into the device, and identity information is compared through a processor in the device, for example, comparison of a login account number, a password and an authentication code, in this process, an operator needs to input a password which is crucial to the identity information, and a large amount of economic data, such as wages and project money of the operator, exist in the login account. When an emergency such as robbery occurs, for example, the operator himself is forced to input a password, the life and property of the operator are damaged, most of the mobility of the operator is limited, and the operator cannot give an alarm through the electronic device which the operator is operating, and cannot give an alarm through other methods.
In order to facilitate the alarm operation of the operator, step S100 is preceded by the following steps:
acquiring a login password of a login account;
acquiring a first password and a second password according to the login password;
detecting whether the first password is matched with a first preset password;
when the first password is matched with the first preset password, detecting whether the second password is matched with a second preset password;
and when the second password is matched with the second preset password, sending an emergency alarm signal to an alarm system.
In this embodiment, the first password and the second password are composed together, the first password is a password composed of 6-digit numbers or letters, and the second password is a password composed of special numbers, for example, the second password is composed of two 1 s and one 0. The first password is a normal login password of the login account, namely the first password is a password used by an operator when the operator logs in the account under normal conditions. When the operator is forced to log in the account, the operator makes the finally input login password be the first password and the second password by additionally inputting the second password, namely, the finally input login password is the correct login password and the correct alarm password. Therefore, the alarm system receives the emergency alarm signal, then carries out alarm in a network communication mode, and the emergency alarm signal contains corresponding positioning information, so that the geographical position of an operator can be conveniently positioned, and the operator can be conveniently rescued. In addition, since the account login password is correct, when the combined password of the first password and the second password is received, in order to reduce the possibility that the personal safety of the operator is continuously violated, after the emergency alarm signal is sent to the alarm system, the step S100 is continuously executed to paralyze the consciousness of the violation implementer, thereby ensuring the personal safety of the operator.
Further, since the infringement executor, when the password input is forced to the operator, usually focuses on the action of the operator, and once the operator finds any intention of wanting to alarm, the operator is likely to be further infringed. In order to increase the complexity of the login password and reduce the alertness of an infringer for the login password, the method for detecting whether the second password matches with a second preset password includes the following steps:
decoding the second password to obtain an early warning password;
detecting whether the early warning password is the same as the second preset password or not;
and when the early warning password is the same as the second preset password, sending an emergency warning signal to a warning system.
In this embodiment, the early warning password is obtained after conversion, that is, a certain relationship exists between a number on each digit in the early warning password and a number on a digit corresponding to the second password, for example, a difference between the number on each digit in the early warning password and the number on the digit corresponding to the second password is equal; for another example, the difference value between the number on each bit in the early warning password and the number on the corresponding bit of the second password is an arithmetic progression; for another example, the difference between the number on each bit in the early warning password and the number on the corresponding bit of the second password is an equal ratio sequence. In a specific embodiment, the early warning password is 110, and the second password is 221, so that a difference between a number on each bit of the early warning password and a number on a corresponding bit of the second password is equal, that is, a difference between the second password and the early warning password is 111, that is, subtracting 1 from each bit of the second password, to obtain the early warning password with the password of 110, thereby facilitating an alarm system to send an emergency alarm signal. In this way, even if the action of the operator is being focused on by the attacker while the operator inputs the password, it is difficult to find out that the operator is performing the alarm operation. For other password encryption and decryption modes, the input password is only required to be not directly displayed on the local alarm telephone number, and the details are not repeated here.
Except for the above situation, an emergency call signal needs to be sent, when an operator is in a mountain area in the field, a dangerous situation is usually encountered, at this time, the device is very likely to be greatly deflected and even turned over at a large angle, and in such a situation, the body of the operator is usually unable to move normally, that is, various body functions of the operator are damaged, and calling rescue cannot be performed through corresponding electronic equipment.
In order to facilitate timely sending of the rescue signal, the following steps are further included after step S400:
acquiring the angular rate of a device corresponding to a login account;
detecting whether the angular rate is greater than a preset rate;
when the angular rate is greater than a preset rate, comparing the angular rate with the preset rate to obtain a rate increase;
and adjusting the sending frequency of the emergency rescue signal according to the rate increase.
In this embodiment, the device or equipment applied by the identity login switching method is generally a mobile phone, most mobile phones have a gyroscope function, and after an operator logs in, software corresponding to the identity login switching method is in a background running state and is in data communication with various functional software on the mobile phone. When the operator is in danger, the mobile phone can rotate rapidly and at a large angle undoubtedly, and the condition of the operator in danger can be judged conveniently by acquiring the angular rate calculated by the gyroscope. In order to distinguish from the turning of the mobile phone in the normal use process, the preset speed is adjusted to be larger than the angular speed of the conventional rotary mobile phone, and the preset speed can be adjusted correspondingly according to the actual situation. When the angular rate is detected to be greater than the preset rate, it is indicated that the operator basically loses holding of the mobile phone, that is, the operator is in a distress state at the moment, and the sending frequency of the emergency rescue signal is correspondingly adjusted according to the difference between the angular rate and the preset rate, that is, the rate increment, for example, the larger the rate increment, the more frequent the sending of the emergency rescue signal is, so that the emergency rescue signal is more easily received, and the search and rescue difficulty of people in distress is reduced. Therefore, the software corresponding to the identity login switching method can meet the requirement on daily work and can be used as software for alarming and rescuing. In addition, when the alarm system is not required to be used, the operation of the alarm system can be temporarily stopped by the interrupt program.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a portion of the steps in fig. 1 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
The present application further provides an identity login switching device, which is implemented by using the identity login switching method described in any of the above embodiments. In one embodiment, the identity login switching device has a functional module corresponding to each step of the identity login switching method. Identity login switching device includes collection module, detection module and display module, wherein:
and the acquisition module is used for acquiring the identity-level weight of the login account.
The detection module is used for detecting whether the identity level weight is matched with a preset value; and when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval.
And the display module is used for acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity by the login account.
In this embodiment, the identity level weight obtained by the acquisition module is a level corresponding to each login account, and the identity level weight is used for representing the level of each login account, that is, the acquisition module obtains the identity level weight for representing the level of the authority that each login account can use, which is convenient for performing targeted services on different login accounts, so that the display module can conveniently display different information on different login accounts, and further facilitates subsequent selection of login identities of login accounts, thereby facilitating improvement of selection efficiency of login identities of login accounts, and reducing complexity of selection of login identities of login accounts.
Moreover, the preset value in the detection module corresponds to an identity level weight with discrimination, and the preset value is used for discriminating accounts with different identity levels, for example, the preset value is used for discriminating a common login account from a special login account, that is, the preset value is greater than the identity level weight corresponding to the common login account, and the preset value is less than the identity level weight corresponding to the special login account. In this way, the detection module facilitates the subsequent determination of the authority of the login account by comparing the identity level weight values, thereby facilitating the subsequent detection module to allocate different login identities to different login accounts. Moreover, the preset values can be adjusted correspondingly according to actual conditions, so that a plurality of different preset values can be set for the login account, and the identity level weight for improving or reducing the priority of the login account is distinguished.
The detection module detects that the identity level weight is matched with the preset value, and indicates that the level weight corresponding to the login account is matched with the level weight corresponding to the preset value, namely indicates that the level weight of the current login account is in a high level and has higher authority. The detection module compares the identity level weight with the preset value, and the detection module obtains the level weight difference value interval according to the difference between the identity level weight and the preset value, wherein the level weight difference value interval comprises the identity level weight corresponding to the login account and the preset value, namely the level weight difference value interval is a closed interval taking the identity level weight and the preset value as endpoints. Therefore, the login identity required by the current login account is limited in the level weight difference value interval, the display module does not display the login identity which is not in the level weight difference value interval any more, the display module can conveniently display the corresponding login identity according to the level weight difference value interval, the display number of the login identity is reduced, the display module displays the login identity in a key mode, and the selection efficiency of the login identity is improved.
In addition, the display module displays all login identities in the level weight difference value interval, but does not display login identities smaller than the preset value, so that the display of required login identities is realized, the display of unnecessary login identities is reduced, the complexity of login identity selection is reduced, the time for selecting login identities is reduced, and the selection efficiency of login identities is improved.
In one embodiment, the acquisition module is further configured to obtain at least one first identity level weight of the login account; obtaining a maximum level weight of at least one of the first identity level weights, wherein the maximum level weight is the identity level weight. In this embodiment, the identity level weight obtained by the acquisition module is the maximum value among the identity level weights corresponding to the login account, that is, the identity level weight is a numerical value corresponding to the highest level weight of the login account. In this way, the acquisition module acquires the highest level right of the login account, so that the acquisition module can conveniently acquire each login identity corresponding to the login account, the loss of part of login identities of the login account is avoided, the integrity of all login identities of the login account is ensured, and the integrity of each login identity of the login account is improved.
In one embodiment, the detection module is further configured to detect whether the identity level weight is greater than an initial level weight; and when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system. In this embodiment, the initial-level weight in the detection module corresponds to an initial-level weight in all login identities, for example, a newly registered login account needs to be identified because it is initially registered, so as to allocate the authority of the login account, that is, to determine the level weight of the newly registered login account. And the identity level weight value is less than or equal to the initial level weight value, which indicates that the current login account is a newly registered login account and has no authority distributed yet, namely the current login account needs to be subjected to level weight determination. In this way, when the current login account is determined to be the newly registered login account, the detection module sends an identity entry signal to the login management system so as to distribute the level right and the authority of the current login account, that is, the level right of the current login account is registered and entered, so that the current login account obtains the corresponding level right. The allocation of the identity-level weight needs to be determined by the personal information in the login account, for example, the name, the identity number, the mobile phone number, and other information of the login account.
In one embodiment, the detection module is further configured to detect whether the identity level weight is greater than 0; and when the identity level weight is equal to 0, sending an identity record increasing signal to the login management system so as to add the identity information of the login account. In this embodiment, the initial-level weight in the detection module corresponds to the initial-level weights in all login identities, and the initial-level weight is adjusted to 0, so that the identity-level weight is conveniently distinguished as positive and negative, and the difficulty in comparing the identity-level weights is reduced. For example, since a newly registered login account is initially registered, that is, the initial level weight is equal to 0, where the initial level weight is 0, it indicates that the newly registered login user is a user that has not been registered before, and needs to confirm the identity of the newly registered login user, so as to allocate the authority of the login account, that is, to determine the level right of the newly registered login account. The identity level weight value is less than or equal to 0, which indicates that the current login account is a newly registered login account and has no distributed authority, i.e. the current login account needs to determine the level right. In this way, when the current login account is determined to be the newly registered login account, the detection module sends an identity entry signal to the login management system so as to distribute the level right and the authority of the current login account, that is, the level right of the current login account is registered and entered, so that the current login account obtains the corresponding level right. The allocation of the identity level weight needs to be determined by personal information in the login account, for example, information such as name, identity number, and mobile phone number of the login account.
Further, the detection module is further configured to send an identity resetting signal to the login management system when the identity level weight is less than 0, so as to perform resetting and entry supplementing on the identity information of the login account. In this embodiment, the initial-level weight in the detection module corresponds to the initial-level weight in all the login identities, and the initial-level weight is adjusted to 0, so that the positive and negative identity-level weights are conveniently distinguished, and the difficulty in comparing the identity-level weights is reduced. For example, since a re-registered login account is a secondary registration, that is, the initial level weight is less than 0, where the initial level weight is 0, it indicates that the registered login user is a previously registered user, and needs to perform identity re-confirmation on the registered login user, so as to perform secondary allocation on the authority of the login account, even if the level right of the registered login account is re-determined. The identity level weight value is less than 0, which indicates that the current login account is a re-registered login account, and since the current login account has the assigned right before, that is, the current login account needs to re-determine the level right, the confusion of level right management caused by the fact that the previous level right is used is avoided. In this way, when the current login account is determined to be the re-registered login account, the detection module sends an identity reset signal to the login management system, so that the level right and the authority of the current login account are redistributed, namely, the level right of the current login account is re-registered and input, and the current login account obtains an accurate level right. The allocation of the identity level weight needs to be determined by personal information in the login account, for example, information such as name, identity number, and mobile phone number of the login account.
In one embodiment, the detection module is further configured to detect whether the identity level weight is greater than or equal to a management level weight; and when the identity-level weight is greater than or equal to the management-level weight, comparing the identity-level weight with the management-level weight to obtain a management-level weight difference interval. In this embodiment, the management-level weight in the detection module is used to distinguish between a login account of a management layer and a login account of a non-management layer, and the management-level weight is greater than the primary-level weight, which is used to distinguish between new and old registered login users, and the management-level weight is used to perform secondary classification on old registered login users, so as to facilitate management of login accounts of different levels of weight, facilitate display of corresponding login identities on login accounts of management layers of different levels of weight, reduce display of unnecessary login identities, reduce complexity of selection of login identities of login accounts of the management layer, and further improve efficiency of selection of login identities of login accounts of the management layer.
Further, the detection module is further configured to obtain and display the login identity corresponding to the identity level weight when the identity level weight is smaller than the management level weight. In this embodiment, the identity-level weight is smaller than the management-level weight in the detection module, which indicates that the identity-level weight corresponding to the current login account is lower than the management-level weight, that is, indicates that the identity-level weight corresponding to the current login account is lower than the identity-level weight corresponding to the login account in the management layer, that is, indicates that the current login account is a normal login account, but not a login account in the management layer. The login account of the management layer corresponds to a plurality of login roles, and the login role corresponding to the common login account is one, namely the login roles corresponding to the common login account are in one-to-one correspondence. In this way, in order to reduce the display of the login roles of other common login accounts or the login role of the management layer by the common login account, only the login role corresponding to the common login account itself needs to be displayed correspondingly, and the situation that the number of login roles displayed by the common login account is too many is effectively reduced. In the above embodiment, the common login accounts are also classified into a plurality of types, that is, different login roles of different common login accounts correspond to different basic roles, and because the number of login roles corresponding to the basic roles is large and the login roles are relatively single, the login roles of the common login accounts are displayed in one-to-one correspondence, thereby avoiding the situation that the login roles displayed by the common login accounts are too many, and further improving the selection efficiency of the login roles of all the login accounts.
For specific limitations of the identity login switching device, reference may be made to the above limitations of the identity login switching method, which is not described herein again. The modules in the identity login switching device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 2. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of identity login switching. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the configuration shown in fig. 2 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the present application further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps in the method embodiments when executing the computer program.
In one embodiment, the present application further provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps in the above-described method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An identity login switching method, characterized in that the method comprises:
acquiring an identity-level weight of a login account;
detecting whether the identity level weight is matched with a preset value;
when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval;
acquiring and displaying login identities corresponding to the identity level weights in the level weight difference value interval so as to switch the login identities of login accounts;
the method for acquiring the identity level weight of the login account comprises the following steps:
acquiring a login password of a login account;
acquiring a first password and a second password according to the login password;
detecting whether the first password is matched with a first preset password or not;
when the first password is matched with the first preset password, detecting whether the second password is matched with a second preset password;
and when the second password is matched with the second preset password, sending an emergency alarm signal to an alarm system.
2. The identity login switching method of claim 1, wherein the obtaining the identity level weight of the login account comprises:
acquiring at least one first identity level weight of a login account;
obtaining a maximum level weight of at least one of the first identity level weights, wherein the maximum level weight is the identity level weight.
3. The identity login switching method of claim 1, wherein the detecting whether the identity level weight matches a preset value further comprises:
detecting whether the identity level weight is larger than an initial level weight;
and when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system.
4. The identity login switching method of claim 3, wherein the detecting whether the identity level weight is greater than an initial level weight comprises:
detecting whether the identity level weight is greater than 0;
when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system, including:
and when the identity level weight is equal to 0, sending an identity record adding signal to the login management system so as to add the identity information of the login account.
5. The identity login switching method of claim 4, wherein when the identity level weight is less than or equal to the initial level weight, sending an identity entry signal to a login management system, further comprising:
and when the identity level weight is less than 0, sending an identity resetting signal to the login management system so as to reset and supplement the identity information of the login account.
6. The identity login switching method of claim 1, wherein the detecting whether the identity level weight matches a preset value comprises:
detecting whether the identity level weight is greater than or equal to a management level weight;
when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval, including:
and when the identity level weight is greater than or equal to the management level weight, comparing the identity level weight with the management level weight to obtain a management level weight difference interval.
7. The method of claim 6, wherein the detecting whether the identity level weight is greater than or equal to a management level weight further comprises:
and when the identity-level weight is smaller than the management-level weight, acquiring and displaying the login identity corresponding to the identity-level weight.
8. An identity login switching apparatus, the apparatus comprising:
the acquisition module is used for acquiring the identity level weight of the login account and acquiring the login password of the login account; acquiring a first password and a second password according to the login password;
the detection module is used for detecting whether the identity level weight is matched with a preset value; when the identity level weight is matched with the preset value, comparing the identity level weight with the preset value to obtain a level weight difference value interval, and detecting whether the first password is matched with a first preset password or not; when the first password is matched with the first preset password, detecting whether the second password is matched with a second preset password; when the second password is matched with the second preset password, an emergency alarm signal is sent to an alarm system;
and the display module is used for acquiring and displaying the login identity corresponding to each identity level weight value in the level weight difference value interval so as to switch the login identity by the login account.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011063167.4A 2020-09-30 2020-09-30 Identity login switching method and device, computer equipment and storage medium Active CN112165493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011063167.4A CN112165493B (en) 2020-09-30 2020-09-30 Identity login switching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011063167.4A CN112165493B (en) 2020-09-30 2020-09-30 Identity login switching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112165493A CN112165493A (en) 2021-01-01
CN112165493B true CN112165493B (en) 2023-02-21

Family

ID=73860890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011063167.4A Active CN112165493B (en) 2020-09-30 2020-09-30 Identity login switching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112165493B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656995A (en) * 2016-10-28 2017-05-10 美的智慧家居科技有限公司 Device control method and device
WO2018107727A1 (en) * 2016-12-13 2018-06-21 中兴通讯股份有限公司 Method and device for information processing, and terminal
CN109117213A (en) * 2017-06-23 2019-01-01 北京嘀嘀无限科技发展有限公司 interface display method, system and terminal
CN109409043A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Login method, terminal device and the medium of application system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392606B (en) * 2017-06-28 2020-08-04 阿里巴巴集团控股有限公司 Account management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656995A (en) * 2016-10-28 2017-05-10 美的智慧家居科技有限公司 Device control method and device
WO2018107727A1 (en) * 2016-12-13 2018-06-21 中兴通讯股份有限公司 Method and device for information processing, and terminal
CN109117213A (en) * 2017-06-23 2019-01-01 北京嘀嘀无限科技发展有限公司 interface display method, system and terminal
CN109409043A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 Login method, terminal device and the medium of application system

Also Published As

Publication number Publication date
CN112165493A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
Jakobsson et al. Implicit authentication for mobile devices
US9621556B2 (en) System and method for implementing a two-person access rule using mobile devices
CN112182519B (en) Computer storage system security access method and access system
WO2021036014A1 (en) Federated learning credit management method, apparatus and device, and readable storage medium
US11399045B2 (en) Detecting fraudulent logins
US10754962B2 (en) System for secure context-aware password management
CN104767713B (en) Account binding method, server and system
US10068077B2 (en) False alarm avoidance
CN110851872B (en) Risk assessment method and device for private data leakage
US7472282B1 (en) Illegal access discriminating apparatus and method
CN110852374A (en) Data detection method and device, electronic equipment and storage medium
CN111797418B (en) Online service control method and device, service terminal, server and storage medium
CN112804240B (en) Function control method, device, server, storage medium and product
CN105869255A (en) Intelligent access control method and system based on mobile terminal
CN110895844A (en) Interaction method and device of intelligent door equipment, computer equipment and storage medium
CN112165493B (en) Identity login switching method and device, computer equipment and storage medium
CN109426961A (en) One kind tying up card risk control method and device
CN114884753B (en) Data access processing method applied to industrial internet cloud service platform
US20220070166A1 (en) Enhanced authentication techniques using virtual persona
CN105897726A (en) Associated account data sharing method and device
CN106921632B (en) Wireless hotspot access control method and device
CN111414601B (en) Continuous identity authentication method, system and medium for kylin mobile operation system
US11134084B1 (en) Diversified authentication and access control
CN113438306A (en) Security monitoring system, security monitoring method and security monitoring equipment
CN117390708B (en) Privacy data security protection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant