CN115065847A - Account login method, system, device, electronic equipment and storage medium - Google Patents

Account login method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115065847A
CN115065847A CN202210609869.0A CN202210609869A CN115065847A CN 115065847 A CN115065847 A CN 115065847A CN 202210609869 A CN202210609869 A CN 202210609869A CN 115065847 A CN115065847 A CN 115065847A
Authority
CN
China
Prior art keywords
account
switching
information
certificate
matching
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.)
Pending
Application number
CN202210609869.0A
Other languages
Chinese (zh)
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202210609869.0A priority Critical patent/CN115065847A/en
Publication of CN115065847A publication Critical patent/CN115065847A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25875Management of end-user data involving end-user authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4532Management of client data or end-user data involving end-user characteristics, e.g. viewer profile, preferences

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Graphics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides an account login method, system, device, electronic equipment and storage medium. Relates to the technical field of computers. The method comprises the step of determining a target account, switching voucher information of the target account and account information according to a switching request, wherein the account information comprises account identification and equipment information. When the account identification and the device information are both matched with the certificate account information obtained by analyzing the switching certificate information, when the switching certificate information is issued by the server, the terminal device corresponding to the target account is the target device corresponding to the device information, a switching request initiated by an account holder is determined, and account switching is allowed. Therefore, when the account holder switches different accounts on different devices, the account is directly switched after the account holder passes the verification of the server. The resource consumption of the account login process of the server can be reduced, the complexity of switching back and forth among a plurality of accounts of the same client can be simplified, and the user experience can be improved.

Description

Account login method, system, device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an account login method, a system, a device, electronic equipment and a storage medium.
Background
Currently, a video application generally stores a play record of a video and a collection subscription record of a user according to a single account. Some users can hold a plurality of accounts for different personnel to use, so that the playing records and the collection subscription records among the personnel cannot be influenced mutually. However, the user needs to frequently perform login operations of each account, which greatly increases resource consumption of the account login process of the server and increases the complexity of account operations for switching among multiple accounts of the same client.
Disclosure of Invention
Embodiments of the present invention provide an account login method, an account login system, an electronic device, and a storage medium, so as to reduce resource consumption of an account login process of a server and operation complexity of account switching of a client. The specific technical scheme is as follows:
in a first aspect of the present invention, an account login method is first provided, where the account login method is applied to a server, and the method includes:
receiving a switching request;
determining switching certificate information and account information of a target account according to the switching request, wherein the account information comprises account identification and equipment information;
analyzing the switching certificate information to determine corresponding certificate account information;
matching the account information with the voucher account information, and determining whether account switching is performed according to a matching result;
and returning a switching result.
Optionally, the matching the account information and the credential account information, and determining whether to perform account switching according to a matching result includes:
matching the account identification with the voucher account identification to determine an account matching result;
matching the equipment information with the certificate equipment information to determine an equipment matching result;
and determining whether to switch the account according to the account matching result and the equipment matching result.
Optionally, the determining whether to perform account switching according to the account matching result and the device matching result includes:
if the account matching result and the equipment matching result are matched successfully, switching the accounts;
and if the account matching result and/or the equipment matching result are matching failures, prohibiting account switching.
Optionally, the credential account information further includes a credential creation time, and the method further includes:
determining the request time corresponding to the received switching request;
comparing the request time with the voucher creation time to determine a corresponding switching time interval;
if the switching time interval is smaller than the switching time threshold, matching the account identification with the certificate account identification;
and if the switching time interval is greater than or equal to the switching time threshold, prohibiting account switching.
Optionally, if the account matching result and the device matching result are both successfully matched, performing account switching, including:
under the condition that the account matching result and the equipment matching result are both matched successfully, inquiring the identification state corresponding to the switching certificate information;
and if the identification state is an effective state, switching the account.
Optionally, the method further includes:
inquiring the number of the certificate information issued by the switching certificate information corresponding to the target equipment according to the equipment information;
and determining the identification state of the first switching certificate information issued to the target equipment as an invalid state under the condition that the quantity of the certificate information is greater than a certificate threshold value.
Optionally, the analyzing the switching credential information to determine the corresponding credential account information includes:
decrypting the switching certificate information by adopting a preset encryption algorithm to obtain certificate data;
and inquiring the account related field in the voucher data to determine voucher account information.
In a second aspect of the present invention, there is provided another account login method applied to a client, where the method includes:
providing a login page;
responding to the operation of the login page, determining a target account and generating a switching request, so that the server determines switching certificate information and account information according to the switching request, matches the account information with certificate account information analyzed according to the switching certificate information, determines whether to perform account switching according to a matching result, and returns a switching result;
and receiving the switching result.
In a third aspect of the embodiments of the present invention, an account login system is further provided, where the system includes a client and a server;
the client is used for providing a login page; responding to the operation of the login page, determining a target account and generating a switching request; receiving a switching result;
and the server is used for determining switching voucher information and account information according to the switching request, matching the account information with voucher account information analyzed according to the switching voucher information, determining whether account switching is performed according to a matching result, and returning a switching result.
In a fourth aspect of the embodiments of the present invention, there is provided an account login apparatus, applied to a server, the apparatus including:
a switching request receiving module for receiving a switching request;
the information determining module is used for determining switching voucher information and account information of the target account according to the switching request, wherein the account information comprises account identification and equipment information;
the certificate analysis module is used for analyzing the switching certificate information and determining corresponding certificate account information;
the information matching module is used for matching the account information with the certificate account information and determining whether to switch accounts according to a matching result;
and the result returning module is used for returning the switching result.
In a fifth aspect of the embodiments of the present invention, there is provided another account login apparatus, applied to a client, where the apparatus includes:
the page providing module is used for providing a login page;
the switching request generating module is used for responding to the operation of the login page, determining a target account and generating a switching request so that the server side determines switching certificate information according to the switching request, matches the account information analyzed according to the switching certificate information with the certificate account information, determines whether to switch the account according to a matching result, and returns the switching result;
and the switching result receiving module is used for receiving the switching result.
In a sixth aspect of the embodiments of the present invention, there is further provided an electronic device, where the electronic device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the method steps of any account login method when executing the program stored in the memory.
In another aspect of the present invention, there is also provided a computer-readable storage medium, having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above account login methods.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any one of the above account login methods.
In the scheme provided by the embodiment of the invention, the server determines the target account number, the switching voucher information of the target account number and the account information according to the switching request, wherein the account information comprises account number identification and equipment information. When the account identification and the device information are matched with the certificate account information obtained by analyzing the switching certificate information, it can be determined that the terminal device corresponding to the target account is the target device corresponding to the device information when the switching certificate information is issued by the server, and it is determined that the switching request is initiated by an account holder, and account switching is allowed. Therefore, when the account holder switches different accounts on different devices, the account is directly switched after the account holder passes the verification of the server. Therefore, the resource consumption of the account login process of the server side can be reduced, the complexity of switching back and forth among a plurality of accounts of the same client side can be simplified, and the user experience feeling can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart illustrating steps of an account login method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of display contents of a login page according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of display contents of another landing page provided in the embodiment of the present invention;
fig. 4 is a flowchart illustrating steps of another account login method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating steps of another account login method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an account login system according to an embodiment of the present invention;
fig. 7 is an interaction diagram of an account login system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an account login apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another account login apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
Referring to fig. 1, an account login method is shown and applied to a server, and the method may include:
s101, receiving a switching request.
S102, determining switching certificate information and account information of the target account according to the switching request, wherein the account information comprises account identification and equipment information.
In an embodiment of the present invention, the client provides a login page to perform various operations in the login page. In one example, when a user wants to switch an account currently logged in by a terminal device to a target account, a click operation may be performed on a switching control corresponding to the target account, and a client generates a switching request in response to a trigger of the click operation.
The terminal devices include, but are not limited to, the following types: tablet personal computers, mobile phone terminals, smart speakers, projectors and the like.
The switching request comprises a target account, switching certificate information, account information and the like. The switching credential information may be understood as certification information for determining account switching, where the account information may include account identifiers and device information, the account identifiers are used to distinguish different website accounts, and the account identifiers corresponding to different website accounts are different. When a user registers a website account, the corresponding account identification is generated by the server, and the website account is associated with the corresponding account identification. The device information refers to a device serial number corresponding to the target device initiating the request. The equipment serial number is generated by a server side when the account is created, wherein the equipment serial number corresponding to each terminal equipment is different.
Therefore, after receiving the switching request, the server can acquire the switching voucher information and the account information of the target account from the switching request.
S103, analyzing the switching certificate information, and determining corresponding certificate account information.
And S104, matching the account information with the certificate account information, and determining whether to switch accounts according to a matching result.
And S105, returning a switching result.
In the embodiment of the invention, the switching certificate information in the switching request is issued by the server. For example, the client has not previously logged in any website account, and the user needs to log in by inputting login credential information of the first website account. After a first website account logs in, when a user wants to log in a held second website account, logout operation needs to be executed on the currently logged-in first website account, and a client responds to the triggering of the logout operation, acquires account information associated with a target account (namely the website account currently executing the logout operation), generates a certificate issuing request and sends the certificate issuing request to a server.
After receiving a certificate issuing request of a target account, the server obtains the account information by analyzing the certificate issuing request. Determining the account information as credential account information, and if so, taking an account identifier in the account information as a credential account identifier, taking equipment information in the account information as credential equipment information, and determining switching credential information according to the credential account information. Therefore, the target account initiating the certificate issuing request can be determined through the certificate account identification, and the target equipment initiating the certificate issuing request can be determined through the certificate equipment information. And after the switching certificate information is generated, the server side issues the switching certificate information to the client side.
After receiving the switching credential information, the client associates the switching credential information with a target account (i.e., a website account currently performing logout operation), and stores the switching credential information in the local. Therefore, in a certain future time period, the switching certificate information associated with the target account can be sent to the server side for validity verification through a switching request of the target account initiated by the client side.
After the client executes the logout operation and successfully logs in other accounts except the target account through the login credential information, a switching control of the target account is displayed in a login page. For example, the first website account is a current login account, and the second website account and the third website account are both logged in on the client. Therefore, the switching control of the second website account and the third website account can be displayed in the login page. The number of the switching controls may be multiple, and each switching control displays relevant information of a corresponding target account, for example, the relevant information may be an account name, an account image, a user identifier, and the like corresponding to a website account, so that a user can distinguish different website accounts to realize quick switching. Referring to fig. 2, if the currently logged account a is, click operations on a switching control of account B and a switching control of account C may be performed, and the client sends a switching request to the server in response to a trigger of the click operations. In another example, referring to fig. 3, in order to prevent a user from performing a misoperation, a determination control for switching an account may be displayed in response to a trigger of a click operation, and a switching request may be generated in response to the trigger of the determination control and sent to a server.
The switching credential information is a kind of encrypted information in consideration of information transmission security. Therefore, the switching credential information can be analyzed in advance to obtain the credential account information. The validity verification mode of the server for switching the credential information may be to match the account information with the credential account information to determine a matching result. Determining whether the switching certificate information is valid or not according to the matching result, and if the switching certificate information is invalid, prohibiting account switching; and if the result is valid, switching the account. For example, the matching results may include: and when the matching is successful and the matching is failed, and the account information and the voucher account information are completely consistent, the account information and the voucher account information can be determined to be successfully matched. And when the account information and the voucher account information are not consistent, determining that the account information and the voucher account information are failed to be matched. When the matching result is that the matching fails, determining that the switching certificate information is invalid; and when the matching result is that the matching is successful, determining that the switching certificate information is effective. Therefore, when the account holder switches accounts of different websites on different devices, the account holder directly switches the accounts after the validity verification is passed. Therefore, the resource consumption of the account login process of the server side can be reduced, the complexity of back-and-forth switching among a plurality of accounts of the same client side can be simplified, and the user experience feeling can be improved.
The server side returns a corresponding switching result to the client side, for example, when account switching is performed, a login identification corresponding to the account identification can be sent to the client side, and subsequently, records of playing, collecting and subscribing generated through the login identification can be recorded under a corresponding target account. For another example, when the account switching is prohibited, a prompt message may be displayed in the login page of the client, where the prompt message may be a field such as a switching failure.
Referring to fig. 4, another account login method is shown, and is applied to a server, and the method may include:
s401, receiving a switching request.
S402, determining switching certificate information and account information of the target account according to the switching request, wherein the account information comprises account identification and equipment information.
In the embodiment of the invention, when a user wants to switch a current account logged in by a terminal device to a target account, a click operation can be executed on a switching control corresponding to the target account displayed in a login page, and a client generates a switching request in response to the trigger of the click operation. The switching request includes a target account, switching credential information, account information, and the like, where the account information may include an account identifier and device information.
S403, analyzing the switching voucher information, and determining corresponding voucher account information, wherein the voucher account information comprises a voucher account identification and voucher equipment information.
In the embodiment of the invention, the switching certificate information is encrypted information in consideration of information transmission security. Therefore, the switching credential information can be analyzed in advance to obtain credential account information, wherein the credential account information comprises the credential account identifier and the credential device information. As an implementation manner of the embodiment of the present invention, the analyzing the switching credential information to determine the corresponding credential account information may include:
and decrypting the switching certificate information by adopting a preset encryption algorithm to obtain certificate data.
And inquiring the account related field in the voucher data to determine voucher account information.
In the embodiment of the invention, the switching certificate information is encrypted information, and even if the switching certificate information is acquired by others in the transmission process, the corresponding display content is a string of non-logical character strings. And information is difficult to crack, so that the security of the account can be improved. For example, the preset Encryption algorithm may adopt various Encryption algorithms such as AES (Advanced Encryption Standard), symmetric Encryption algorithm, asymmetric Encryption algorithm, and the like. And then, according to the key corresponding to the algorithm, after the switching certificate information is decrypted, certificate data corresponding to the switching certificate information can be obtained. The account related field may include: an account identification field, a device field, a creation time field, and the like. And inquiring the data value corresponding to the field to determine the corresponding certificate account identification, the certificate equipment information and the certificate creation time as the certificate account information.
S404, matching the account identification with the voucher account identification, and determining an account matching result.
S405, matching the equipment information with the certificate equipment information, and determining an equipment matching result.
In the embodiment of the invention, the validity verification mode of the service end on the switching certificate information can be that the account information is matched with the certificate account information, the matching result is determined, and whether the validity is valid or not is determined according to the matching result. Specifically, the account id and the credential account id, and the device information and the credential device information may be respectively matched to determine a corresponding account matching result and a corresponding device matching result. The account matching result and the device matching result can both comprise two matching results, wherein one matching result is successful, and the other matching result is failed.
S406, whether the account matching result and the equipment matching result are matched successfully or not is judged.
If the account matching result and the device matching result are both successfully matched, executing a step S407; otherwise, if the account matching result and/or the device matching result is a matching failure, step S408 is executed.
And S407, account switching is carried out.
And S408, prohibiting account switching.
And S409, returning a switching result.
In the embodiment of the invention, when the account identification and the voucher account identification are completely consistent, the account matching result can be determined to be successful in matching, and when the account identification and the voucher account identification are not completely consistent, the account matching result can be determined to be failed in matching. In another example, when the device serial number of the target device and the credential device serial number are completely consistent, it may be determined that the device matching result is a successful matching; when the device serial number of the target device and the device serial number of the certificate are not completely consistent, the device matching result can be determined to be matching failure.
Therefore, only when the account matching result and the equipment matching result are successfully matched, the user performing logout operation and the user currently initiating the switching request can be determined to be the same user, the switching certificate information corresponding to the account is determined to be valid, and account switching is allowed. The account holder can avoid the need of interactive verification or authorization through a third-party application every time the account is logged in, and the account can be directly switched. The resource consumption of the account login process of the server is reduced, the complexity of back-and-forth switching among a plurality of accounts of the same client can be simplified, and the user experience feeling is improved. Meanwhile, whether the effective determining factors include account identification and equipment information or not is determined, so that the switching voucher information of the corresponding account with the same account identification is not associated on different terminal equipment by the user. For example, when a user initiates a switching request to the same website account on 2 different terminal devices at the same time, the operation is not abnormal and interactive verification is not required. Therefore, the operation complexity of switching the multiple login accounts at different clients is greatly reduced.
In another example, if the account matching result and the device matching result both fail to match or one of the account matching result and the device matching result fails to match, it is determined that the switching credential information is at risk of being acquired by others. For example, when the device matching result is failure, it is determined that the terminal device initiating the credential issuance request and the terminal device initiating the handover request are inconsistent. Thereby, the switching voucher information can be confirmed to be acquired by others in the transmission process. The user who initiates the switching request and the user who executes logout operation are not the same user with high probability, so that the switching certificate information corresponding to the account is determined to be invalid, and the account switching is not allowed. The measure can improve the experience of the user and ensure the account safety of the user at the same time.
The server side returns a corresponding switching result to the client side, for example, when account switching is performed, a login identification corresponding to the account identification can be sent to the client side, and subsequently, records of playing, collecting and subscribing generated through the login identification can be recorded under a corresponding target account. For another example, when the account switching is prohibited, a prompt message may be displayed in the login page of the client, where the prompt message may be a field such as a switching failure.
As an implementation manner of the embodiment of the present invention, the credential account information further includes credential creation time, and the method may further include:
and determining the request time corresponding to the received switching request.
And comparing the request time with the voucher creating time to determine a corresponding switching time interval.
And if the switching time interval is smaller than the switching time threshold, matching the account identification with the certificate account identification.
And if the switching time interval is greater than or equal to the switching time threshold, prohibiting account switching.
In the embodiment of the present invention, the time limit for verifying the handover credential information may be limited by setting a handover time threshold, for example, the handover time threshold may be 50 days, 80 days, or 90 days. Thereby ensuring account security. For example, after the client initiates the handover request, the time when the server receives the handover request is determined as the request time. And inquiring the credential creating time in the server, wherein the credential creating time refers to the corresponding moment when the server generates the switching credential information. And after determining the request time, the server compares the request time with the certificate creation time to determine a time interval, and the time interval is used as a switching time interval. The switching time interval may then be compared to a switching time threshold.
In one example, when the switching time interval is smaller than the switching time threshold, it is described that the switching credential information conforms to the valid time limit of the switching credential information when being sent to the server for verification, and thus, the server determines that the switching time interval is within the valid time limit, so that the next matching operation can be performed, for example, the account id and the credential account id are matched, and the validity of the switching credential information is further determined according to the matching result. In another example, when the switching time interval is greater than or equal to the switching time threshold, it indicates that the switching credential information does not meet the corresponding valid time limit when being sent to the server for verification, and thus the server determines that the switching credential information is invalid and prohibits account switching. The switching time threshold may be dynamically set according to an actual situation, and is not specifically limited herein.
As an implementation manner of the embodiment of the present invention, if the account matching result and the device matching result are both successfully matched, performing account switching includes:
under the condition that the account matching result and the equipment matching result are matched successfully, inquiring the identification state corresponding to the switching voucher information;
and if the identification state is an effective state, switching the account.
In the embodiment of the invention, the server stores the identification state of the switching certificate information while issuing the switching certificate information, wherein the identification state can comprise an effective state and an invalid state. Only when the identification state is in the valid state, the server side allows account switching under the condition that the switching credential information is determined to be valid. And under the condition that the identification state is an invalid state, whether the switching voucher information is valid or not is judged, and account switching is forbidden. In the service end, the identification state can be characterized by a state flag bit. For example, when the switching credential information is issued, the state identification bit is initialized to a value, for example, 1, to indicate that the identification state is a valid state. In the actual website operation process, the identification state may be converted into an invalid state, for example, the state identification bit is updated to another value, for example, 0, to represent that the identification state is an invalid state. And under the condition that the identification state is an invalid state, even if the server determines that the switching voucher information is valid, the account switching is prohibited.
Account security of the account holder is considered, so that the switching certificate information is prevented from being obtained by other people for cracking and is used for a long time. Some conditions can be preset, so that the server side converts the identification state into the invalid state. In one example, the switching credential information further includes a verification code, and the number of times of validity verification performed on each switching credential information is determined to be one, that is, after the target account is successfully switched, the server converts the identification state of the corresponding switching credential information into an invalid state. Meanwhile, the server virtually initiates a certificate issuing request of the certificate account information, generates new switching certificate information, and issues the new switching certificate information to the corresponding client so as to update the switching certificate information which is stored in the client and is associated with the target account. Wherein, the difference between the new switching credential information and the switching credential information corresponding to the invalid state is that: the verification codes are different. And updating the corresponding switching certificate information once every time the client completes account switching through the switching certificate information. Therefore, the switching credential information stored by the client is dynamically changed in a longer time interval, and the account security can be further improved.
As an implementation manner of the embodiment of the present invention, the method may further include:
and inquiring the number of the certificate information issued by the switching certificate information corresponding to the target equipment according to the equipment information.
And determining the identification state of the first switching certificate information issued to the target equipment as an invalid state under the condition that the quantity of the certificate information is greater than a certificate threshold value.
In the embodiment of the invention, account security of the user is considered, the number of accounts switched by switching credential information on the same terminal device can be limited, for example, a credential threshold for saving website accounts is set on the same terminal device. Therefore, according to the device information acquired from the switching request, the server side inquires the number of the certificate information of the target device corresponding to the device information. In the inquiry process, when the identification state of the switching certificate information issued to the target equipment is in an effective state, the counting is within the number of the certificate information. If the number of the credential information is larger than the credential threshold, it indicates that the number of accounts directly performing account switching on the same terminal device through switching credential information exceeds the upper limit. For example, 5 login accounts are allowed to be stored in the same terminal device, 4 login accounts are allowed to directly switch accounts through switching credential information, and if the terminal device initiates a credential issuing request according to logout operation of the 5 th login account (without switching credential information), the server side updates the identification state corresponding to the account initiating the credential issuing request first in the other 4 login accounts in the terminal device to an invalid state. Correspondingly, the earliest switching control in the login page can be cleared, and then the switching control corresponding to the website account which issues switching credential information for the latest time is displayed.
Referring to fig. 5, there is shown another account login method applied to a client, where the method may include:
s501, providing a login page.
S502, responding to the operation of the login page, determining a target account and generating a switching request, so that the server side determines switching certificate information according to the switching request, matches the account information analyzed according to the switching certificate information with the certificate account information, determines whether account switching is performed according to a matching result, and returns a switching result.
S503, receiving the switching result.
In an embodiment of the present invention, the client provides a login page to perform various operations in the login page. In one example, when a user wants to switch a current account logged in by a terminal device to a target account, a click operation may be performed on a switching control corresponding to the target account, and a client generates a switching request corresponding to the target account in response to a trigger of the click operation.
After receiving the switching request, the server may obtain switching credential information and account information of the target account from the switching request. The server may obtain credential account information based on parsing the switching credential information. And then matching the account information with the certificate account information to determine a matching result. Determining whether the switching certificate information is valid or not according to the matching result, and if the switching certificate information is invalid, prohibiting account switching; and if the information is valid, switching the account number. For example, the matching results may include: and when the matching is successful and the matching is failed, and the account information and the voucher account information are completely consistent, the account information and the voucher account information can be determined to be successfully matched. And when the account information and the voucher account information are not consistent, determining that the account information and the voucher account information are failed to be matched. When the matching result is that the matching fails, determining that the switching certificate information is invalid; and when the matching result is that the matching is successful, determining that the switching certificate information is effective. Therefore, when the account holder switches accounts of different websites on different devices, the account holder directly switches the accounts after the validity verification is passed. And the server side returns a switching result corresponding to the switching request to the client side, for example, after account switching is carried out, the client side displays a website page, and simultaneously receives a login identification corresponding to the account identification sent by the server side, and the subsequent records of playing, collecting and subscribing generated through the login identification are recorded under the corresponding target account. For another example, when the account switching is prohibited, a corresponding prompt message may be displayed in the login page of the client, where the prompt message may be a field such as a switching failure.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 6, an account login system is shown, which includes a client 601 and a server 602;
the client 601 is used for providing a login page; responding to the operation of the login page, determining a target account and generating a switching request; and receiving a switching result.
The server 602 is configured to determine switching credential information and account information according to the switching request, match the account information with credential account information analyzed according to the switching credential information, determine whether to perform account switching according to a matching result, and return a switching result.
In the embodiment of the present invention, the content description of the account login system may refer to the description contents of steps S101 to S105.
Referring to fig. 7, an interaction diagram of the system is shown, for example, a first website account is account a, and a second website account is account B. The client does not log in any website account before, and when the client logs in the account A, the client responds to the trigger of the login control in the login page to generate a login request corresponding to the account A and sends the login request to the server. And after the server receives the login request, performing login verification according to the information in the login request, and after the login verification is passed, issuing a login identification corresponding to the account A to the client. And recording the playing, collecting and subscribing records generated by the login identification to the account A. When a user wants to log in the account B, the logout operation of the account A can be executed, and the client responds to the trigger of the logout operation of the account A, generates a certificate issuing request and sends the certificate issuing request to the server. The server side generates switching certificate information of the account A according to the certificate issuing request, and sends the switching certificate information to the client side, and the client side stores the account A and the corresponding switching certificate information.
And when the client logs in the account B, responding to the trigger of the login control in the login page, generating a login request corresponding to the account B, and sending the login request to the server. And after receiving the login request, the server performs login verification according to the information in the login request, and after the login verification is passed, issues a login identification corresponding to the account B to the client. And recording the playing, collecting and subscribing records generated by the login identification to the account B. When a user wants to switch the currently logged account B to the account A without an interactive mode, a switching control corresponding to the account A can be clicked, and the client generates a switching request in response to the triggering of the clicking operation. After receiving the switching request, the server may obtain switching credential information and account information of the target account from the switching request. The server may obtain credential account information based on parsing the switching credential information. And then matching the account information with the certificate account information to determine a matching result. And whether the switching certificate information is valid or not is judged, and if so, the switching certificate information is switched to the account A. Therefore, the account can be directly switched after the validity verification is passed. Therefore, the operation complexity of the user in account login switching can be reduced, and the user experience can be improved. And after the account A is switched, issuing a login identification corresponding to the account A to the client. And recording the playing, collecting and subscribing records generated by the login identification to the account A.
Referring to fig. 8, an account login apparatus is shown, which is applied to a server and may include:
a handover request receiving module 801, configured to receive a handover request.
An information determining module 802, configured to determine, according to the handover request, handover credential information and account information of the target account, where the account information includes an account identifier and device information.
And a credential parsing module 803, configured to parse the switching credential information to determine corresponding credential account information.
And the information matching module 804 is configured to match the account information with the credential account information, and determine whether to perform account switching according to a matching result.
And a result returning module 805 for returning the switching result.
As an implementation manner of the embodiment of the present invention, the information matching module may include:
and the account matching submodule is used for matching the account identification with the certificate account identification and determining an account matching result.
And the equipment matching submodule is used for matching the equipment information with the certificate equipment information and determining an equipment matching result.
And the account switching submodule is used for determining whether to switch accounts according to the account matching result and the equipment matching result.
As an implementation manner of the embodiment of the present invention, the account switching sub-module is further configured to:
and if the account matching result and the equipment matching result are matched successfully, switching the accounts.
And if the account matching result and/or the equipment matching result are failed to match, prohibiting account switching.
As an implementation manner of the embodiment of the present invention, the credential account information further includes a credential creation time, and the apparatus may further include:
and the request time acquisition module is used for determining the request time corresponding to the received switching request.
And the time comparison module is used for comparing the request time with the certificate creation time and determining a corresponding switching time interval.
And the time judgment module is used for matching the account identification with the certificate account identification if the switching time interval is smaller than the switching time threshold.
And if the switching time interval is greater than or equal to the switching time threshold, prohibiting account switching.
As an implementation manner of the embodiment of the present invention, the account switching sub-module may further include:
and the identification state determining unit is used for inquiring the identification state corresponding to the switching certificate information under the condition that the account matching result and the equipment matching result are successfully matched.
And the account switching unit is used for switching accounts if the identification state is a valid state.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
and the certificate quantity determining module is used for inquiring the quantity of the certificate information issued by the switching certificate information of the corresponding target equipment according to the equipment information.
And the state judgment module is used for determining the identification state of the first switching certificate information issued to the target equipment as an invalid state under the condition that the number of the certificate information is greater than the certificate threshold value.
As an implementation manner of the embodiment of the present invention, the credential parsing module may include:
and the information decryption module is used for decrypting the switching certificate information by adopting a preset encryption algorithm to obtain certificate data.
And the information query module is used for querying the account related fields in the voucher data and determining the voucher account information.
Referring to fig. 9, another account logging apparatus is shown, which is applied to a client and may include:
a page providing module 901, configured to provide a login page.
A switching request generating module 902, configured to determine a target account and generate a switching request in response to the operation on the login page, so that the server determines switching credential information according to the switching request, matches the account information analyzed according to the switching credential information with the credential account information, determines whether to perform account switching according to a matching result, and returns a switching result.
A switching result receiving module 903, configured to receive the switching result.
The embodiment of the present invention further provides an electronic device, as shown in fig. 10, which includes a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete mutual communication through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement the following steps when executing the program stored in the memory 1003:
receiving a switching request;
determining switching certificate information and account information of a target account according to the switching request, wherein the account information comprises account identification and equipment information;
analyzing the switching certificate information to determine corresponding certificate account information;
matching the account information with the voucher account information, and determining whether account switching is performed according to a matching result;
and returning a switching result.
Or the following steps:
providing a login page;
responding to the operation of the login page, determining a target account and generating a switching request, so that the server determines switching certificate information and account information according to the switching request, matches the account information with certificate account information analyzed according to the switching certificate information, determines whether to perform account switching according to a matching result, and returns a switching result;
and receiving the switching result.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the computer is enabled to execute the account login method in any one of the above embodiments.
In another embodiment, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the account login method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may 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)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. An account login method is applied to a server side, and the method comprises the following steps:
receiving a switching request;
determining switching certificate information and account information of a target account according to the switching request, wherein the account information comprises account identification and equipment information;
analyzing the switching certificate information to determine corresponding certificate account information;
matching the account information with the voucher account information, and determining whether account switching is performed according to a matching result;
and returning a switching result.
2. The method of claim 1, wherein the matching the account information and the credential account information, and determining whether to perform account switching according to a matching result comprises:
matching the account identification with the voucher account identification to determine an account matching result;
matching the equipment information with the certificate equipment information to determine an equipment matching result;
and determining whether to switch the account according to the account matching result and the equipment matching result.
3. The method according to claim 2, wherein the determining whether to perform account switching according to the account matching result and the device matching result includes:
if the account matching result and the equipment matching result are matched successfully, switching the accounts;
and if the account matching result and/or the equipment matching result are matching failures, prohibiting account switching.
4. The method of claim 2, wherein the credential account information further comprises a credential creation time, the method further comprising:
determining the request time corresponding to the received switching request;
comparing the request time with the voucher creation time to determine a corresponding switching time interval;
if the switching time interval is smaller than the switching time threshold, matching the account identification with the certificate account identification;
and if the switching time interval is greater than or equal to the switching time threshold, prohibiting account switching.
5. The method according to claim 3, wherein if the account matching result and the device matching result are both successfully matched, performing account switching, including:
under the condition that the account matching result and the equipment matching result are both matched successfully, inquiring the identification state corresponding to the switching certificate information;
and if the identification state is an effective state, switching the account.
6. The method of claim 1, further comprising:
inquiring the number of the certificate information issued by the switching certificate information corresponding to the target equipment according to the equipment information;
and determining the identification state of the first switching certificate information issued to the target equipment as an invalid state under the condition that the number of the certificate information is greater than the certificate threshold value.
7. The method of claim 1, wherein the parsing the switching credential information to determine corresponding credential account information comprises:
decrypting the switching certificate information by adopting a preset encryption algorithm to obtain certificate data;
and inquiring the related fields of the account in the voucher data to determine the information of the voucher account.
8. The method of claim 1, further comprising:
receiving a certificate issuing request of the target account, wherein the certificate issuing request comprises the account information;
generating switching certificate information of the target account according to the account identification and the equipment information in the account information;
and returning the switching credential information.
9. An account login method is applied to a client, and the method comprises the following steps:
providing a login page;
responding to the operation of the login page, determining a target account and generating a switching request, so that the server determines switching certificate information and account information according to the switching request, matches the account information with certificate account information analyzed according to the switching certificate information, determines whether to perform account switching according to a matching result, and returns a switching result;
and receiving the switching result.
10. An account login system is characterized by comprising a client and a server;
the client is used for providing a login page; responding to the operation of the login page, determining a target account and generating a switching request; receiving a switching result;
and the server is used for determining switching voucher information and account information according to the switching request, matching the account information with voucher account information analyzed according to the switching voucher information, determining whether account switching is performed according to a matching result, and returning a switching result.
11. An account login device, applied to a server, the device comprising:
a switching request receiving module for receiving a switching request;
the information determining module is used for determining switching voucher information and account information of the target account according to the switching request, wherein the account information comprises account identification and equipment information;
the certificate analysis module is used for analyzing the switching certificate information and determining corresponding certificate account information;
the information matching module is used for matching the account information with the certificate account information and determining whether to switch accounts according to a matching result;
and the result returning module is used for returning the switching result.
12. An account login device, applied to a client, the device comprising:
the page providing module is used for providing a login page;
the switching request generating module is used for responding to the operation of the login page, determining a target account and generating a switching request so as to enable the server to determine switching credential information according to the switching request, match the account information analyzed according to the switching credential information with the credential account information, determine whether to switch the account according to a matching result, and return the switching result;
and the switching result receiving module is used for receiving the switching result.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-9 when executing a program stored in the memory.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-9.
CN202210609869.0A 2022-05-31 2022-05-31 Account login method, system, device, electronic equipment and storage medium Pending CN115065847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210609869.0A CN115065847A (en) 2022-05-31 2022-05-31 Account login method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210609869.0A CN115065847A (en) 2022-05-31 2022-05-31 Account login method, system, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115065847A true CN115065847A (en) 2022-09-16

Family

ID=83198936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210609869.0A Pending CN115065847A (en) 2022-05-31 2022-05-31 Account login method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115065847A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130298216A1 (en) * 2012-05-04 2013-11-07 Rawllin International Inc. Single sign-on account management for a display device
US20140337927A1 (en) * 2013-05-07 2014-11-13 General Instrument Corporation Authorization of media content transfer between home media server and client device
CN106357684A (en) * 2016-10-26 2017-01-25 北京奇虎科技有限公司 Login method and device of game application
WO2017063367A1 (en) * 2015-10-16 2017-04-20 腾讯科技(深圳)有限公司 Method for logging in to application, server, terminal, and non-volatile computer readable storage medium
US10110578B1 (en) * 2013-03-12 2018-10-23 Amazon Technologies, Inc. Source-inclusive credential verification
CN110298162A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Application client login method, device, computer equipment and storage medium
CN113496020A (en) * 2020-03-18 2021-10-12 广州汽车集团股份有限公司 Vehicle-mounted machine user non-sensory login method and system, vehicle-mounted machine and vehicle
CN114238879A (en) * 2021-11-30 2022-03-25 北京达佳互联信息技术有限公司 Data processing method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130298216A1 (en) * 2012-05-04 2013-11-07 Rawllin International Inc. Single sign-on account management for a display device
US10110578B1 (en) * 2013-03-12 2018-10-23 Amazon Technologies, Inc. Source-inclusive credential verification
US20140337927A1 (en) * 2013-05-07 2014-11-13 General Instrument Corporation Authorization of media content transfer between home media server and client device
WO2017063367A1 (en) * 2015-10-16 2017-04-20 腾讯科技(深圳)有限公司 Method for logging in to application, server, terminal, and non-volatile computer readable storage medium
CN106357684A (en) * 2016-10-26 2017-01-25 北京奇虎科技有限公司 Login method and device of game application
CN110298162A (en) * 2019-05-22 2019-10-01 深圳壹账通智能科技有限公司 Application client login method, device, computer equipment and storage medium
CN113496020A (en) * 2020-03-18 2021-10-12 广州汽车集团股份有限公司 Vehicle-mounted machine user non-sensory login method and system, vehicle-mounted machine and vehicle
CN114238879A (en) * 2021-11-30 2022-03-25 北京达佳互联信息技术有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
US9866568B2 (en) Systems and methods for detecting and reacting to malicious activity in computer networks
US10158670B1 (en) Automatic privilege determination
WO2018113690A1 (en) Login authorisation method and apparatus, and login method and apparatus
US10542044B2 (en) Authentication incident detection and management
WO2017084290A1 (en) Public account two-dimensional code generation method and server, and public account following method, server and terminal
CN107483495B (en) Big data cluster host management method, management system and server
US9059987B1 (en) Methods and systems of using single sign-on for identification for a web server not integrated with an enterprise network
CN113271296B (en) Login authority management method and device
KR20130103537A (en) User account recovery
US8949599B2 (en) Device management apparatus, method for device management, and computer program product
CN112838951B (en) Operation and maintenance method, device and system of terminal equipment and storage medium
US11582232B2 (en) Authority transfer system, server and method of controlling the server, and storage medium
CN108092970A (en) A kind of wireless network maintaining method and its equipment, storage medium, terminal
CN107124420A (en) Auth method and device
US11784994B2 (en) Management device, management system, and non-transitory computer readable medium
CN112836206A (en) Login method, device, storage medium and computer equipment
CN113761498A (en) Third party login information hosting method, system, equipment and storage medium
CN115065847A (en) Account login method, system, device, electronic equipment and storage medium
US20180109515A1 (en) System, service providing apparatus, control method for system, and storage medium
CN114528542A (en) Login management method and device, electronic equipment and storage medium
CN104365055A (en) Re-verification of a device
WO2012032628A1 (en) Information processing apparatus
CN111090850B (en) Authentication system, method and device
US11785013B2 (en) Application program access control
KR20140043628A (en) Log-in process method

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