CN115426624B - Automatic login method, device, equipment and storage medium - Google Patents

Automatic login method, device, equipment and storage medium Download PDF

Info

Publication number
CN115426624B
CN115426624B CN202211382584.4A CN202211382584A CN115426624B CN 115426624 B CN115426624 B CN 115426624B CN 202211382584 A CN202211382584 A CN 202211382584A CN 115426624 B CN115426624 B CN 115426624B
Authority
CN
China
Prior art keywords
login
notification
link
account
short
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
CN202211382584.4A
Other languages
Chinese (zh)
Other versions
CN115426624A (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.)
Electronic Science And Technology Park Co ltd
Original Assignee
Electronic Science And Technology Park 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 Electronic Science And Technology Park Co ltd filed Critical Electronic Science And Technology Park Co ltd
Priority to CN202211382584.4A priority Critical patent/CN115426624B/en
Publication of CN115426624A publication Critical patent/CN115426624A/en
Application granted granted Critical
Publication of CN115426624B publication Critical patent/CN115426624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Abstract

The application provides an automatic login method, an automatic login device, automatic login equipment and a storage medium, and relates to the technical field of network communication. In the automatic login method provided by the application, firstly, a notification short message carrying a short link is obtained, wherein the notification short message is generated by encapsulating the to-be-handled notification link into a short link by a server and embedding the short link into the content of the short message; and analyzing the short link in the notification short message, obtaining the user information corresponding to the notification short message, matching the login account associated with the current user information, and realizing automatic login of the notification page to be handled according to the matching result. The whole process reduces manual participation of a user, is simple and quick, does not need complicated operation, can directly reach a work order operation interface by one key, and improves the effect of user experience; meanwhile, by combining additional verification functions such as a public-private chain, an appointed binding associated account, multi-account selective login and the like, the safety access of business handling information is guaranteed, and the safety of automatic login is improved.

Description

Automatic login method, device, equipment and storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an automatic login method, apparatus, device, and storage medium.
Background
Mobile phone OA: the OA is also called mobile OA (Office Automation) and is an application of an OA (Office Automation) system to mobile terminals such as mobile phones and PDAs. The wireless mobile phone can realize wireless transplantation of various applications in an OA system inside a government-enterprise user, including e-mails, documents, notice bulletins, file management, address lists and the like, to a mobile phone end of the user, so that the user can be ensured to remotely process various basic office affairs anytime and anywhere. With the increasing frequency of the mobile phone in daily life, the requirement of the people for mobile phone OA office work is more urgent, and how to improve the timeliness and convenience of the mobile phone OA office work is an important subject to be solved at present.
At present, when a work order is generated to be handled by an OA system in the existing scheme, a common short message is sent to a user, the user manually logs in a mobile phone OA to find the work order to perform operation after receiving the short message, the user needs to input information such as an account number and a password to log in the operation process, and needs to manually find the work order, so that the whole process is time-consuming and labor-consuming.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide an automatic login method, apparatus, device and storage medium, in which a notification short message carrying a short link is obtained, where the notification short message is generated by encapsulating, by a server, a to-do notification link as a short link and embedding the short link into the content of the short message; the short link in the notification short message is analyzed to obtain the user information corresponding to the notification short message, the login account number associated with the current user information is matched, automatic login of the notification page to be handled can be achieved according to the matching result, manual operation and manual login are avoided, and the technical problem that the whole process is time-consuming and labor-consuming is solved.
In a first aspect, an embodiment of the present application provides an automatic login method, where the method includes: acquiring a notification short message carrying a short link; the notification short message is generated by encapsulating the to-be-handled notification link into the short link by the service end and embedding the short link into the short message content; analyzing a short link in the notification short message to obtain user information corresponding to the notification short message; the user information comprises a mobile phone number for receiving the notification short message; and matching the login account associated with the user information, and performing login operation based on a matching result.
In the implementation process, a short link is embedded in the notification short message prompt of the user, when the user clicks the short link, the browser is called to automatically analyze, automatically match and log in the to-be-handled service notification system, and automatically jump to the to-be-handled service operation interface, so that the manual participation of the user is reduced in the whole process, the operation is simple and rapid, the complex operation is not needed, the operation interface of the to-be-handled service can be directly reached by one key, and the user experience effect is improved.
Optionally, the matching the login account associated with the user information and performing login operation based on the matching result include: if the associated login account is not matched, returning login failure prompt information; if the single associated login account is matched, performing login operation based on the single associated login account; and if the login accounts are matched with the plurality of associated login accounts, performing login operation based on the selection of the user on one login account in the plurality of associated login accounts.
In the implementation process, all effective login accounts are acquired according to the telephone numbers, multi-account selective login can be achieved, the login request is automatically verified through a plurality of login accounts associated with user information, automatic login is achieved, the same mobile phone number is avoided, a plurality of matched login accounts exist, the program cannot judge which account is currently used, the login usability and convenience are improved, and the safety and interaction experience are improved.
Optionally, if a plurality of associated login accounts are matched, performing a login operation based on a user selection of one login account in the plurality of associated login accounts, including: judging whether the user information allows multi-account selective login; if the login information is allowed, popping up a plurality of login accounts corresponding to the user information, and selecting one of the login accounts to automatically log in based on the user.
In the implementation process, whether the current mobile phone number is in a white list allowing multi-account selective login is inquired, and whether a multi-account selective page window is popped up is further determined, so that multi-account selective login can be achieved; the login request is automatically verified through a plurality of login accounts associated with the user information, automatic login is achieved, the same mobile phone number is avoided, a plurality of matched login accounts exist, the program cannot judge the current condition of which account is used, the login usability and convenience are further improved, and the safety and interaction experience are improved.
Optionally, after analyzing the short link in the notification short message, the method further includes: calling a rear-end interface through a transfer page corresponding to the short link to obtain a login account associated with the user information and a to-do notification link corresponding to the short link; judging whether the to-be-done notification link is bound with an appointed login account or not; if the to-do notification link is bound with the specified login account, judging whether the specified login account belongs to the login account related to the user information; if the log-in account number belongs to the page to be notified, allowing the log-in account number to automatically log in the page to be notified based on the specified log-in account number; if not, automatically logging in the to-do notification page based on the specified login account is refused.
In the implementation process, whether the specified login account is bound or not is judged to carry out safety verification, and if the specified login account is bound, whether login access is carried out or not can be determined according to whether the specified login account and the associated login account have intersection or not, so that the safety authentication of the system can be completed quickly, and the practicability and the safety of automatic login are improved.
Optionally, after determining whether the to-do notification link is bound to a specific login account, the method further includes: if the to-do notification link is not bound with the specified login account, judging whether the associated login account is single or not; if the associated login account is single, allowing the user to automatically login to the to-do notification page based on the associated login account; if the associated login account is not single, judging whether the user information allows multiple accounts to select to login; if yes, popping up a plurality of login accounts corresponding to the user information, and automatically logging in the to-do notification page based on one of the login accounts; if not, automatically logging in the to-do notification page based on the login account is refused.
In the implementation process, whether the designated login account is bound or not is judged to carry out safety verification, if the designated login account is not bound, whether multi-account selective login access or single-account login access is carried out or not can be determined according to the number of the associated login accounts, safety authentication of the system can be completed quickly, and practicability and safety of automatic login are further improved.
Optionally, after analyzing the short link in the notification short message, the method further includes: calling a rear-end interface through a transfer page corresponding to the short link to obtain public and private link attributes corresponding to the short link; and if the short link is a private link, checking whether the short link allows login access based on the user information.
In the implementation process, whether the current mobile phone number needs to be checked whether to be in the range of the mobile phone number allowing access or not is further judged according to the public and private chain attribute of the short link, and automatic login access can be performed according to the login account number associated with the mobile phone number only after the check is passed, so that the safety verification of the system is further realized, and the practicability and the safety of automatic login are further improved.
Optionally, the notification short message is generated by splicing the to-be-handled notification link with the security verification information logged in the to-be-handled notification page by the server side, converting the spliced to a transfer page, packaging the transfer page as the short link, and embedding the short link into the short message content; the security verification information comprises public and private chain attributes and mobile phone numbers which correspond to the private chain and can be accessed in a login mode.
In the implementation process, original lengthy links are converted into transfer pages, security verification information such as public and private link attributes and associated login account information is added, the security verification information is finally packaged into short links with unique identifiers, and the short links are inserted into short message texts to send short message reminding information to the user terminal, so that the problem that errors are prone to occur in the long link transmission process or the user terminal display process is solved, the success rate of link clicking access is improved, and the short message cost is saved.
In a second aspect, an embodiment of the present application provides an automatic login device, where the device includes: the acquisition module is used for acquiring the notification short message carrying the short link; the notification short message is generated by encapsulating the to-be-handled notification link into the short link by the server and embedding the short link into the short message content; the analysis module is used for analyzing the short link in the notification short message to obtain the user information corresponding to the notification short message; the user information comprises a mobile phone number for receiving the notification short message; and the matching login module is used for matching the login account associated with the user information and performing login operation based on a matching result.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory storing machine-readable instructions executable by the processor, the machine-readable instructions being executable by the processor to perform the steps of the method described above when the electronic device is run.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the method.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of an automatic login method according to an embodiment of the present application;
fig. 2 is a schematic overall flow chart of a user opening a short-chain login jump according to an embodiment of the present application;
fig. 3 is a window for selecting login by multiple accounts according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a process of determining a binding-specified login account according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a server generating a short link and sending a short message according to the embodiment of the present application;
fig. 6 is a schematic functional block diagram of an automatic login device according to an embodiment of the present application;
fig. 7 is a block diagram illustrating an electronic device providing an automatic login apparatus according to an embodiment of the present application.
An icon: 210-an acquisition module; 220-a resolution module; 230-matching login module; 300-an electronic device; 311-a memory; 312 — a storage controller; 313-a processor; 314-a peripheral interface; 315-input-output unit; 316-display unit.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as presented in the figures, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element. The terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
The present inventors have noted that, with the popularization of mobile terminals such as mobile phones and tablet computers, APP (OA system application) running on the mobile terminals is also widely used. The APP often sends some short messages, APP reminding messages or webpage messages and other push messages to the user according to different services, the push messages may include page links, and the user clicks the page links to open corresponding pages in the APP. The prior art scheme is two kinds usually, all can't avoid the loaded down with trivial details operation in the user use: 1. the system generates a work order and simultaneously sends a short message prompt to the user, the short message only has common text content, and the user needs to self-log in the mobile phone OA system by self-opening an APP or a webpage login end after receiving the short message and finds out the work order for processing; 2. the system generates a work order and sends a short message prompt with a link to a user, the user jumps to a specified work order interface by clicking the link, and authentication information such as an account number, a password and the like is still required to be input to log in the jumping process.
Based on the above findings, the embodiment of the application provides an automatic login method, which can be flexibly applied to various scenes, such as opening of an OA homepage of a mobile phone, news display, work order examination and approval, and the like. Based on the short-message short-chain automatic login technology, a short link is embedded in the short message prompt of a user, the user calls a browser to automatically analyze and log in an OA system when clicking the short chain, and automatically jumps to the work order operation interface, so that the manual participation of the user is reduced in the whole process, the operation is simple and rapid, the complex operation is not needed, the work order operation interface can be directly reached by one key, and the user experience effect is improved; meanwhile, by combining additional verification functions such as a public-private chain, an appointed binding associated account, multi-account selective login and the like, the safety access of business handling information is guaranteed, and the safety of automatic login is improved.
In view of this, the automatic login method provided in the embodiment of the present application is specifically described as follows:
referring to fig. 1, fig. 1 is a flowchart illustrating an automatic login method according to an embodiment of the present disclosure, where the method includes: step 100, step 120, step 140.
Step 100: acquiring a notification short message carrying a short link; the notification short message is generated by encapsulating the to-be-handled notification link into a short link by the service end and embedding the short link into the short message content;
step 120: analyzing a short link in the notification short message to obtain user information corresponding to the notification short message; the user information comprises a mobile phone number for receiving the notification short message;
step 140: and matching the login account number associated with the user information, and performing login operation based on a matching result.
Illustratively, the notification short message may be a prompt message, a web message or a push message sent by the sending end to the user terminal according to different services in a variety of scenes such as a mobile phone OA homepage, a news show, a work order examination and approval, and the like. The to-do notification link may be an original long link URL (Uniform Resource Locator) corresponding to the to-do service notification page in the reminding message, the web message, or the push message, and the long link may be a page link formed by encapsulating the to-do service notification page address, the preset relay route, and the link parameter according to a corresponding encapsulation rule by the sender, for example: app abc:// html & url = https:// m abc. Com/appm/syacn/wechat/smsLink & route _ key = is _ grab _2. The login account may be: letters, numbers, underlines, and the like.
Because original long link URL is long, it is easy to make mistakes during transmission process or user terminal display, and the short message sometimes has word number limitation, therefore, also in order to save the short message cost, it is often necessary to first connect the original long link to the short website to process, and convert the long URL link into the short link, for example: https:// hfx. Net/i/6TB4u; and then, a unique communication identifier is generally allocated to the short link and then embedded into the short message content for sending, so that the word number is saved, the short message marketing cost is saved, and the link splitting caused by the splitting of the short message content by an operator is avoided, so that the access of a user is invalid.
After receiving the notification short message, the user terminal reads the received notification short message and clicks a short link in the notification short message to call a mobile phone browser, and the receiving terminal browser analyzes the short link in the notification short message to obtain user information corresponding to the communication unique identifier in the short link, wherein the user information comprises a mobile phone number for receiving the notification short message; and querying the associated login account matched with the user information, and if the query result is matched with the corresponding correct login account, indicating that the to-do business system passes the authentication, and directly accessing the to-do notification page corresponding to the short link without manually inputting information such as an account, a password and the like.
By embedding a short link in the notification short message prompt of the user, the user calls a browser to automatically analyze and automatically match and log in the to-be-handled service notification system when clicking the short link, and automatically jumps to the to-be-handled service operation interface.
In one embodiment, step 140 may specifically include: step 141, step 142, step 143.
Step 141: if the associated login account is not matched, returning login failure prompt information;
step 142: if the single associated login account is matched, performing login operation based on the single associated login account;
step 143: and if the plurality of associated login accounts are matched, performing login operation based on the selection of the user to one of the plurality of associated login accounts.
Illustratively, as shown in fig. 2, fig. 2 shows an overall flow diagram of a user opening a short-chain login jump. The 5G message interface platform in fig. 2 may be a server interface to which the present application relates; unified users can be used for storing OA account information, such as information of mobile phone numbers, login names and the like; and the boomerang may be: the mobile phone number is fetched by using the capability provided by the mobile operator. 1. Opening the short chain: the user uses the mobile phone terminal to open a short link by using a browser under a 4G/5G cellular network, such as https:// hfx.net/i/6TB4u; 2. number taking: the operator can appear and wait for the loading interface that obtains cell-phone number user information according to mobile phone traffic provides, and the browser can jump to the transfer page of custom development after the loading is accomplished to carry token, if: https:// hfx.net/app/mytransfer = F2F96F87-379D-423D-93D5-F69EB0FE9F4A & token = xxxxxxxx, and after the transfer page obtains the token parameter, the transfer page calls a mobile phone number analysis capability interface provided by an operator; 3. resolving the mobile phone number: and resolving the token into the real mobile phone number of the user.
The operator needs to give the analyzed mobile phone number to the OA application system, but cannot give the mobile phone number in the clear text, so the mobile phone number is given in a token protection mode. Meanwhile, token acquisition does not involve identity authentication of a user name/password, but invokes a token generated by an operator when a mobile phone browser opens a short link.
After the operations of the steps 1, 2 and 3 are executed, the following steps can be performed: 4. inquiring a mobile phone number associated account number: when the transfer page is loaded, the account number associated with the user in the detection database can be queried according to the mobile phone number, and when the associated login account number matched with the user information is queried, a valid login account number (login name) is obtained according to the phone number, for example: the query is implemented with the code "public List < TokenLoginUser > GetLoginName". If the associated login name is not inquired, the current mobile phone number is possibly lost and fails, and an error is returned to indicate that the login fails according to the current mobile phone number; if the associated login account is inquired, if only one associated login account exists, login access is carried out based on the only login account; if multiple associated login accounts exist, the user can select one of the multiple associated login accounts to perform login access.
Through obtaining all effective login accounts according to the telephone number, multi-account selective login can be realized, a login request is automatically verified through a plurality of login accounts associated with user information, automatic login is realized, the same mobile phone number is avoided, and when a plurality of matched login accounts exist, a program cannot judge the condition of which account is currently used, so that the login usability and convenience are improved, and the safety and interaction experience are improved.
In one embodiment, step 143 may specifically include: step 143a, step 143b.
Step 143a: judging whether the user information allows multiple accounts to select to log in;
step 143b: and if the login information is allowed, popping up a plurality of login accounts corresponding to the user information, and selecting one of the login accounts based on the user to automatically log in.
For example, allowing multiple account numbers to select to login to the white list may be: the mobile phone number has only one associated login account number under the default condition, if a plurality of mobile phone numbers exist, login is not allowed, and the specified mobile phone number can be allowed to select the account number to be logged in during login by setting a white list allowing the multiple account numbers to select login. The multi-account white list can be stored in a database in advance, so that the terminal can directly inquire the white list in the database when reading information conveniently, and whether the current mobile phone number allows multi-account login or not is quickly determined.
Referring to fig. 2, after the step 4 of querying the mobile phone number associated account number, the following steps may be performed: 5. inquiring a white list of multi-account login: whether the user information allows the multiple account numbers to selectively log in can be judged by inquiring whether the current mobile phone number is in a white list range allowing the multiple account numbers to selectively log in. If the page window is in the white list range, whether a page window selected by multiple accounts pops up can be judged according to commands such as IsMultiAccountLogin, users and the like. As shown in fig. 3, the diagram shows a case that both account numbers can log in, which indicates that a user of a current mobile phone number can allow the two account numbers to verify the login, and the user can directly access a to-do notification page corresponding to a short link by selecting one of the two account numbers.
Whether a current mobile phone number is in a white list allowing multi-account selective login is inquired, whether a page window selected by multiple accounts is popped up is further determined, and multi-account selective login can be achieved; the login request is automatically verified through a plurality of login accounts associated with the user information, and the login is automatically performed, so that the same mobile phone number is avoided, and when a plurality of matched login accounts exist, the program cannot judge which account is currently used, the login usability and convenience are further improved, and the safety and interactive experience are improved.
In one embodiment, step 120 may be followed by: step 121, step 122, step 123, step 124.
Step 121: calling a rear-end interface through a transfer page corresponding to the short link to obtain a login account related to the user information and a to-do notification link corresponding to the short link;
step 122: judging whether the to-be-done notification link is bound with an appointed login account or not;
step 123: if the to-do notification link is bound with the specified login account, judging whether the specified login account belongs to the login account associated with the user information;
step 124: if the log-in account number belongs to the log-in account number, allowing the user to automatically log in the notification page to be handled based on the specified log-in account number; if not, automatically logging in the to-do notification page based on the specified login account is refused.
Illustratively, as shown in fig. 4, fig. 4 is a flowchart illustrating a process of determining that a specific login account is bound, where the specific associated account may be: most short links are used in the scene of work order examination and approval, and the links have associated and definite processing accounts, so that the associated login accounts are written into a database when the short links are created, and the information of the accounts to be logged in can be definite when a user opens the short links.
A user uses a mobile phone terminal to open a short link by using a browser under a 4G/5G cellular network, if https:// hfx.net/i/6TB4u, a loading interface for waiting for obtaining mobile phone number user information provided by an operator according to mobile phone traffic appears, after loading is completed, the browser jumps to a transfer page developed by self definition, and when the transfer page is loaded, the transfer page calls a back-end server interface, as shown in fig. 2, except that the step 5 inquires whether a multi-account number login white list allows multi-account number login, the steps can also be performed: 6. getting a link: the method comprises the steps of obtaining a mobile phone number used by a current user, a related account number, information about whether multiple account numbers are allowed to select, an original long link URL to be opened currently, information about whether the long link is bound to a specified account number, and the like. Judging whether the original long link is bound with the specified login account or not according to the information; if the short link binds the specified login account and the associated account returned by the back-end server interface have intersection, namely the specified login account belongs to one of the associated accounts, the login is allowed, otherwise, the login is directly rejected. Finally, the automatic login to the service notification system can be realized, the automatic skip to the work order page is realized, and the check and approval of the work order are realized.
Whether the specified login account is bound or not is judged to perform the safety access, and if the specified login account is bound, whether the login access is performed or not can be determined according to whether the specified login account and the associated login account have an intersection or not, so that the safety authentication of the system can be completed quickly, and the practicability and the safety of automatic login are improved.
In one embodiment, after step 122, may include: step 122a, step 122b, step 122c, step 122d.
Step 122a: if the to-do notification link is not bound with the specified login account, judging whether the associated login account is single or not;
step 122b: if the associated login account is single, allowing the user to automatically login to the to-do notification page based on the associated login account;
step 122c: if the associated login account is not single, judging whether the user information allows multiple accounts to select to login;
step 122d: if yes, popping up a plurality of login accounts corresponding to the user information, and automatically logging in the to-do notification page based on one of the login accounts; if not, automatically logging in the to-do notification page based on the login account is refused.
Illustratively, when the transfer page is loaded, the transfer page calls a back-end server interface to obtain a mobile phone number used by a current user, an associated login account, whether to allow multiple accounts to select login information, an original long link URL to be opened currently, whether the long link has information bound to a specified account, and the like. Judging whether the original long link is bound with the specified login account or not according to the information; if the short link is not bound with the specified account number, and only one related login account number returned by the back-end server interface is available, the automatic login is allowed to be directly performed, otherwise, according to whether the login identification is allowed to be selected by multiple account numbers returned by the back-end server interface, an account number selection list of a page window selected by the multiple account numbers is popped up for selective login, and the login is rejected if the login identification is not allowed to be selected by the multiple account numbers; finally, the automatic login to the service notification system can be realized, the automatic skip to the work order page is realized, and the check and approval of the work order are realized.
Whether the designated login account is bound or not is judged to perform the safety access, if the designated login account is not bound, whether the multi-account selective login access or the single-account login access is performed or not can be determined according to the number of the associated login accounts, the safety authentication of the system can be completed quickly, and the practicability and the safety of automatic login are further improved.
In one embodiment, after step 120, the method may further include: step 125, step 126.
Step 125: calling a rear-end interface through a transfer page corresponding to the short link to obtain public and private link attributes corresponding to the short link;
step 126: and if the short link is a private link, checking whether the short link allows login access based on the user information.
Illustratively, the public-private chain may be: if the chain is public, multiple persons are allowed to access, and all persons can view the chain, such as a news detail page. If the short link is a private link, the current short link only allows the access of the specified mobile phone number range, and information security leakage caused by short message forwarding and the like is avoided.
A user uses a mobile phone terminal to open a short link by using a browser under a 4G/5G cellular network, if https:// hfx.net/i/6TB4u, a loading interface provided by an operator and waiting for acquiring user information such as a mobile phone number can appear, after loading is completed, the browser jumps to a transfer page developed by a user-defined user, and when the transfer page is loaded, the transfer page calls a back-end server interface, as shown in FIG. 2, except that the step 5 inquires whether a multi-account login white list allows multi-account login and the step 6 link fetching, the method can also be carried out: 7. and (3) checking the public and private chains: analyzing the information of the short link, inquiring detailed information of the short link through the short link ID, if the current short link is a private link, checking whether the current mobile phone number is within a range of allowed mobile phone numbers, and then performing automatic login access; finally, the following steps can be realized: 8. logging in the mobile phone OA: automatically logging in to a service notification system; 9. jumping to a work sheet page: and automatically jumping to a work order page, and checking and approving the work order.
Whether the current mobile phone number needs to be checked whether to be in the range of the mobile phone number allowing access or not is further judged according to the public and private chain attribute of the short link, automatic login access can be carried out according to the login account number associated with the mobile phone number only after verification, safety certification of the system is further achieved, and practicability and safety of automatic login are further improved.
In one embodiment, the notification short message is generated by splicing the to-be-handled notification link with the security verification information logged in the to-be-handled notification page by the server side, converting the spliced to a transit page, packaging the transit page as a short link, and embedding the short link into the content of the short message; the security verification information comprises public and private chain attributes and mobile phone numbers which correspond to the private chain and can be accessed in a login mode.
Exemplarily, referring to fig. 5, fig. 5 is a schematic diagram illustrating a flow of a server generating a short link and sending a short message. The 5G message interface platform in fig. 5 may be a server interface to which the present application relates; and the boomerang may be: encapsulating short chains using capabilities provided by a mobile operator; the service application can be a work order system, a news system and other to-do service systems. 1. Application to the generation of short chains: firstly, a service application for creating a short link can be initiated to a server, and original long link URL, private link and associated account information are transmitted by a calling interface; 2. converting the original long chain link into a conversion page: then, a unique identifier UUID can be assigned to the short link, and converted into a fixed transfer page in the mobile phone H5, for example: https:// hfx.net/app/mytransferid = F2F96F87-379D-423D-93D5F69EB0FE9F4A;
3. short chain encapsulation: the operator-provided encapsulation short chain capability can then be invoked to convert the generated transfer page into a short link, such as: https:// hfx. Net/i/6TB4u; 4. and (3) persistence: furthermore, the encapsulated information such as short links, private links, associated login accounts and the like can be persisted to a database, the domain object instant data which cannot be permanently stored in the memory can be permanently stored in the database through persisting the domain object instant data to the database, the power-off data is not lost, long-term storage access is realized, and the short-chain URL generated in the last step is returned while persisting the domain object instant data; 5. embedding short chains into the text of the short message according to the short message template: finally, the text of the short message to be sent finally can be generated according to the configured short message template; 6. and sending the short message content: and simultaneously calling a short message gateway to send short message content carrying short chains to the user. For example:
you have a work order: for xxx applications, please do so as soon as possible! In order to ensure the information security, the information is not forwarded. [ 5G message fast transaction ] https:// hfx.
Original lengthy links are converted into transfer pages, security verification information such as public and private link attributes and associated login account information is added, the short links with unique identifiers are finally packaged, and the short links are inserted into short message texts to send short message reminding information to a user terminal, so that the problem that errors are prone to occurring in the long link transmission process or the user terminal display process is solved, the success rate of link clicking access is improved, and the short message cost is saved.
Referring to fig. 6, fig. 6 is a diagram illustrating an automatic login device according to an embodiment of the present application, where the automatic login device includes: an acquisition module 210, a parsing module 220, and a matching and logging module 230.
An obtaining module 210, configured to obtain a notification short message carrying a short link; the notification short message is generated by encapsulating the to-be-handled notification link into a short link by the server side and embedding the short link into the short message content;
the analysis module 220 is configured to analyze the short link in the notification short message to obtain user information corresponding to the notification short message; the user information comprises a mobile phone number for receiving the notification short message;
and a matching login module 230, configured to match the login account associated with the user information, and perform a login operation based on a matching result.
Optionally, the match entry module 230 may be configured to:
if the associated login account number is not matched, returning login failure prompt information;
if the single associated login account is matched, performing login operation based on the single associated login account;
and if the plurality of associated login accounts are matched, performing login operation based on the selection of the user to one of the plurality of associated login accounts.
Optionally, the match entry module 230 may be configured to:
judging whether the user information allows the multiple account numbers to be selected for login;
and if the user information is allowed to be popped up, and one of the login accounts is selected by the user to automatically log in.
Optionally, the parsing module 220 may be configured to:
calling a rear-end interface through a transfer page corresponding to the short link to obtain a login account related to the user information and a to-do notification link corresponding to the short link;
judging whether the to-be-done notification link is bound with an appointed login account or not;
if the to-do notification link is bound with the specified login account, judging whether the specified login account belongs to the login account associated with the user information;
if the log-in account number belongs to the page, allowing the log-in account number to automatically log in the page to be notified;
if not, automatically logging in the to-do notification page based on the specified login account is refused.
Optionally, the parsing module 220 may be configured to:
if the to-do notification link is not bound with the specified login account, judging whether the associated login account is single;
if the associated login account is single, allowing the user to automatically login to the to-do notification page based on the associated login account;
if the associated login account is not single, judging whether the user information allows multiple accounts to select to login;
if the user information is allowed to be logged out, popping up a plurality of login accounts corresponding to the user information, and automatically logging in the to-do notification page based on one of the login accounts.
If not, automatically logging in the to-do notification page based on the login account is refused.
Optionally, the parsing module 220 may be configured to:
calling a rear-end interface through a transfer page corresponding to the short link to obtain public and private link attributes corresponding to the short link;
and if the short link is a private link, checking whether the short link allows login access based on the user information.
Optionally, the notification short message is generated by splicing the to-be-handled notification link with the security verification information logged in the to-be-handled notification page by the server side, converting the spliced to a transit page, packaging the transit page as a short link, and embedding the short link into the content of the short message; the security verification information comprises public and private chain attributes and mobile phone numbers which correspond to the private chain and can be accessed through login.
Referring to fig. 7, fig. 7 is a block diagram of an electronic device. The electronic device 300 may include a memory 311, a memory controller 312, a processor 313, a peripheral interface 314, an input-output unit 315, and a display unit 316. It will be understood by those skilled in the art that the structure shown in fig. 7 is merely illustrative and is not intended to limit the structure of the electronic device 300. For example, electronic device 300 may also include more or fewer components than shown in FIG. 7, or have a different configuration than shown in FIG. 7.
The above-mentioned memory 311, memory controller 312, processor 313, peripheral interface 314, input/output unit 315, and display unit 316 are electrically linked to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses or signal lines. The processor 313 described above is used to execute executable modules stored in memory.
The Memory 311 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 311 is configured to store a program, and the processor 313 executes the program after receiving an execution instruction, and the method executed by the electronic device 300 defined by the process disclosed in any embodiment of the present application may be applied to the processor 313, or implemented by the processor 313.
The processor 313 may be an integrated circuit chip having signal processing capabilities. The Processor 313 may be a general-purpose Processor, and includes 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. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripheral interface 314 couples various input/output devices to the processor 313 and to the memory 311. In some embodiments, peripheral interface 314, processor 313, and memory controller 312 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 315 is used for providing data input for the user. The input/output unit 315 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 316 provides an interactive interface (e.g., a user interface) between the electronic device 300 and the user for reference. In this embodiment, the display unit 316 may be a liquid crystal display or a touch display. The liquid crystal display or the touch display can display the process of the program executed by the processor.
The electronic device 300 in this embodiment may be configured to perform each step in each method provided in this embodiment.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in the foregoing method embodiments.
The computer program product of the foregoing method provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute steps in the foregoing method embodiment, which may be referred to specifically in the foregoing method embodiment, and details are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication link between each other may be through some communication interfaces, indirect coupling or communication link of devices or units, and may be in an electrical, mechanical or other form. The functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, 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.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (9)

1. An automatic login method, the method comprising:
acquiring a notification short message carrying a short link; the notification short message is generated by splicing the to-be-handled notification link with the safety verification information logged in the to-be-handled notification page by the server side, converting the spliced notification link into a transfer page, packaging the transfer page into the short link, and embedding the short link into the short message content; the safety verification information comprises public and private chain attributes corresponding to the short links, mobile phone numbers which correspond to the private chains and can be accessed in a login mode, and login accounts related to the mobile phone numbers;
analyzing a short link in the notification short message to obtain user information corresponding to the notification short message; the user information comprises a mobile phone number for receiving the notification short message;
and matching the login account associated with the user information, and performing login operation based on a matching result.
2. The method according to claim 1, wherein the matching of the login account associated with the user information and the login operation based on the matching result comprise:
if the associated login account is not matched, returning login failure prompt information;
if the single associated login account is matched, performing login operation based on the single associated login account;
and if the plurality of associated login accounts are matched, performing login operation based on the selection of the user on one login account in the plurality of associated login accounts.
3. The method of claim 2, wherein performing the login operation based on a user selection of one of the plurality of associated login accounts if a plurality of associated login accounts are matched comprises:
judging whether the user information allows multi-account selective login;
and if the user information is allowed to be popped up, and one of the login accounts is selected by the user to automatically log in.
4. The method of claim 1, wherein after parsing the short link in the notification text message, the method further comprises:
calling a rear-end interface through a transfer page corresponding to the short link to obtain a login account related to the user information and a to-do notification link corresponding to the short link;
judging whether the to-be-done notification link is bound with an appointed login account or not;
if the to-do notification link is bound with a specified login account, judging whether the specified login account belongs to the login account associated with the user information;
if the log-in account number belongs to the page, allowing the log-in account number to automatically log in to a to-do notification page based on the specified log-in account number;
if not, automatically logging in the to-do notification page based on the specified login account is refused.
5. The method according to claim 4, wherein after determining whether the to-do notification link is bound to a specific login account, the method further comprises:
if the to-do notification link is not bound with the specified login account, judging whether the associated login account is single;
if the associated login account is single, allowing the user to automatically login to the to-do notification page based on the associated login account;
if the associated login account is not single, judging whether the user information allows multiple accounts to select to login;
if yes, popping up a plurality of login accounts corresponding to the user information, and automatically logging in the to-do notification page based on one of the login accounts;
if not, automatically logging in the to-do notification page based on the login account is refused.
6. The method of claim 1, wherein after parsing the short link in the notification text message, the method further comprises:
calling a rear-end interface through a transfer page corresponding to the short link to obtain public and private link attributes corresponding to the short link;
and if the short link is a private link, checking whether the short link allows login access based on the user information.
7. An automatic login device, the device comprising:
the acquisition module is used for acquiring the notification short message carrying the short link; the notification short message is generated by splicing the to-be-handled notification link with the safety verification information logged in the to-be-handled notification page by the server side, converting the spliced notification link into a transfer page, packaging the transfer page into the short link, and embedding the short link into the short message content; the safety verification information comprises public and private chain attributes corresponding to the short links, mobile phone numbers which correspond to the private chains and can be accessed in a login mode, and login accounts related to the mobile phone numbers;
the analysis module is used for analyzing the short link in the notification short message to obtain the user information corresponding to the notification short message; the user information comprises a mobile phone number for receiving the notification short message;
and the matching login module is used for matching the login account associated with the user information and performing login operation based on a matching result.
8. An electronic device, comprising: a processor, a memory storing machine-readable instructions executable by the processor, the machine-readable instructions when executed by the processor performing the steps of the method of any of claims 1 to 6 when the electronic device is run.
9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the method according to any one of claims 1 to 6.
CN202211382584.4A 2022-11-07 2022-11-07 Automatic login method, device, equipment and storage medium Active CN115426624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211382584.4A CN115426624B (en) 2022-11-07 2022-11-07 Automatic login method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211382584.4A CN115426624B (en) 2022-11-07 2022-11-07 Automatic login method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115426624A CN115426624A (en) 2022-12-02
CN115426624B true CN115426624B (en) 2023-02-17

Family

ID=84208217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211382584.4A Active CN115426624B (en) 2022-11-07 2022-11-07 Automatic login method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115426624B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116962078A (en) * 2023-09-19 2023-10-27 成都运荔枝科技有限公司 Web system login management and control system based on browser plug-in

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11134142A (en) * 1997-10-31 1999-05-21 Minolta Co Ltd Printing system
CN103618794B (en) * 2013-11-29 2017-11-14 北京奇虎科技有限公司 Method, terminal and the server of automated log on
CN106254187A (en) * 2016-08-08 2016-12-21 青岛金智高新技术有限公司 A kind of method realizing enterprise common virtual automation office network
CN109962934A (en) * 2017-12-14 2019-07-02 广州市华势信息科技有限公司 A kind of OA system of mobile and its method
CN109886640A (en) * 2018-12-30 2019-06-14 广东一一五科技股份有限公司 A kind of work transaction management method, system, electronic equipment and storage medium
CN110493206B (en) * 2019-08-07 2022-07-12 彩讯科技股份有限公司 Account login method and device
CN112637796B (en) * 2020-12-21 2022-01-18 彩讯科技股份有限公司 Office information response method, system, server and storage medium based on 5G
CN112822023B (en) * 2021-01-13 2022-04-26 苏州佩秋信息科技有限公司 Communication information transmitting method, information access method, device and storage medium
CN112905715A (en) * 2021-02-08 2021-06-04 长沙冉星信息科技有限公司 Multi-dimensional evaluation method based on questionnaire and method thereof

Also Published As

Publication number Publication date
CN115426624A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN111160845B (en) Service processing method and device
JP6688389B2 (en) Information leakage inspection method, device, server, and computer-readable storage medium
EP2057551B1 (en) Email forms engine for portable devices
US20060242248A1 (en) Shortcut generator for services accessible via a messaging service system
US20010056444A1 (en) Communication terminal device
CN114338793B (en) Message pushing method and device, electronic equipment and readable storage medium
CN115426624B (en) Automatic login method, device, equipment and storage medium
CN113076153A (en) Interface calling method and device
CN110855555B (en) Mail sending method, device, equipment and computer readable storage medium
CN106453582B (en) Asynchronous message pushing method and system
CN106485520A (en) Across channel communicating control method and server
CN103051699A (en) Method for forwarding information and acquiring mutual information by enterprises based on web browser
CN110276028B (en) Processing method and device for internal link function requirements of business system
CN116346660A (en) Data processing method, device, equipment and medium based on dependent replacement service
KR100620331B1 (en) Mms transfer process test system including mms monitoring device for tracing and display mms transfer process, and test method transfer process using the same
CN113873450B (en) Short message configuration method, device, computer equipment and storage medium
CN114095365B (en) Processing method and device of Internet of things service based on 5G message
CN114648775A (en) Method and device for collecting electronic invoice based on mail
CN111125211A (en) Contract establishing method and device, computer readable medium and electronic equipment
CN111371741B (en) Method, device, computer equipment and storage medium for transmitting external network data to internal network
CN110072200B (en) Short message sending control processing method and device and computer equipment
KR20090086929A (en) Method for refining address
TWI731924B (en) Method and device for processing verification information
EP2175382B1 (en) Methods, module and network server for providing information to a mobile phone
KR100694027B1 (en) Apparatus for inquiring the satisfaction grade for the offered service using Internet and method thereof

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