Mailbox login method, device and equipment and readable storage medium
By obtaining and verifying the identity in the instant messaging application, the function of automatically logging in to the target mailbox in the instant messaging application is realized, which solves the problem of low mailbox login efficiency in the existing technology and simplifies user operations.
Patent Information
- Application Number
- CN202310336243.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
In instant messaging applications, email login efficiency is low. Users need to manually enter their email account and password, and the automatic login function is insufficient, making the login process cumbersome.
Provides an email login method that obtains the instant messaging account and the target email account, determines the corresponding identity, and automatically logs in to the target email when the verification conditions are met, realizing the function of automatically logging in by simply entering the email account.
The efficiency of email login is improved. Users only need to enter their email account to log in automatically, which simplifies the login process and improves the user experience.
Smart Images

Figure CN118694739A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular to a mailbox login method, device, equipment and readable storage medium. Background Art
[0002] With the development of the Internet, email has become a tool for people's work and life. People can exchange information through email, which brings great convenience to people's work and life, and is conducive to improving the quality of life and work efficiency. In related technologies, instant messaging applications have the function of supporting email login. Based on this, how to log in to the email in the instant messaging application has become an important technology. Summary of the invention
[0003] The present application provides a mailbox login method, device, equipment and readable storage medium, which can improve the mailbox login efficiency. The technical solution includes the following contents.
[0004] In one aspect, a mailbox login method is provided, the method comprising:
[0005] When the instant messaging application is in a logged-in state, obtaining a target email account entered in an email login interface provided by the instant messaging application;
[0006] Obtaining an instant messaging account of the instant messaging application;
[0007] Determining a first identity based on the instant messaging account;
[0008] Determining a second identity based on the target email account;
[0009] When the first identity identifier and the second identity identifier meet the verification condition, the mailbox corresponding to the target mailbox account is automatically logged in.
[0010] On the other hand, a mailbox login device is provided, the device comprising:
[0011] An acquisition module, used to acquire a target email account entered in an email login interface provided by the instant messaging application when the instant messaging application is in a logged-in state;
[0012] The acquisition module is further used to acquire the instant messaging account of the instant messaging application;
[0013] A determination module, configured to determine a first identity based on the instant messaging account;
[0014] The determination module is further configured to determine a second identity based on the target email account;
[0015] The login module is used to automatically log in to the mailbox corresponding to the target mailbox account when the first identity identifier and the second identity identifier meet the verification conditions.
[0016] In one possible implementation, the acquisition module is used to display at least one candidate email account in the email login interface, any one of the candidate email account being associated with the instant messaging account; obtain a selection operation on the at least one candidate email account, and determine the candidate email account selected by the selection operation as the target email account.
[0017] In a possible implementation, the acquisition module is used to acquire the instant messaging account when the target email account satisfies the first condition, the second condition, and the third condition;
[0018] The first condition is that the domain name of the target email account allows cross-domain login;
[0019] The second condition is that the target email account is not disabled;
[0020] The third condition is that the Internet Protocol address of the target email account is within a set address range.
[0021] In a possible implementation, the acquisition module is used to resolve the domain name of the target email account to obtain a resolution result, and the resolution result is used to describe the publishing unit of the domain name; if the publishing unit of the domain name is the same as the publishing unit of the instant messaging application, the instant messaging account of the instant messaging application is obtained.
[0022] In a possible implementation, the acquisition module is used to acquire a security level configured for the target email account; if the security level is lower than a level threshold, acquire an instant messaging account of the instant messaging application.
[0023] In a possible implementation manner, the device further includes:
[0024] A generating module, configured to generate a level adjustment interface and adjustment prompt information if the security level is not lower than the level threshold, wherein the adjustment prompt information is used to prompt the user to adjust the security level on the level adjustment interface;
[0025] The acquisition module is further used to acquire the adjusted security level; if the adjusted security level is lower than the level threshold, acquire the instant messaging account of the instant messaging application.
[0026] In a possible implementation, the target email account corresponds to a first email identifier, the first email identifier is used to indicate that the target email account is determined in the process of registering or using the instant messaging account, the first identity identifier is used to represent the identity identifier of a user belonging to the target unit in the instant messaging application, and the second identity identifier is used to represent the identity identifier of the user belonging to the target unit in the email application;
[0027] The determination module is further used to determine that the first identity identifier and the second identity identifier satisfy the verification condition when a third identity identifier determined based on the first identity identifier is the same as a third identity identifier determined based on the second identity identifier, and the third identity identifier is used to represent the identity identifier of a user belonging to the target unit.
[0028] In a possible implementation, the target email account corresponds to a second email identifier, the second email identifier is used to indicate that a determination process of the target email account and a registration process of the instant messaging account are independent of each other, the first identity identifier is used to represent an identity identifier of a user belonging to the target unit in the instant messaging application, and the second identity identifier is used to represent an identity identifier of the user in the email application;
[0029] The determination module is further configured to determine that the first identity identifier and the second identity identifier satisfy the verification condition when a fourth identity identifier determined based on the first identity identifier is the same as a fourth identity identifier determined based on the second identity identifier, and the fourth identity identifier is used to represent the identity identifier of the user.
[0030] In a possible implementation, the acquisition module is further configured to acquire the email password entered in the email login interface when the first identity identifier and the second identity identifier do not satisfy the verification condition;
[0031] The login module is further used to log in to the mailbox corresponding to the target mailbox account based on the mailbox password.
[0032] In a possible implementation, the acquisition module is further used to acquire a triggering operation of a mailbox switching control in a mailbox operation interface provided by the instant messaging application, and display at least one switchable mailbox account related to the target mailbox account in the mailbox operation interface; acquire a selection operation of the at least one switchable mailbox account, and determine the switchable mailbox account selected by the selection operation as the related mailbox account;
[0033] The login module is also used to log in to the mailbox corresponding to the relevant mailbox account.
[0034] On the other hand, an electronic device is provided, comprising a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the electronic device implements any of the above-mentioned email login methods.
[0035] On the other hand, a computer-readable storage medium is also provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned email login methods.
[0036] On the other hand, a computer program or a computer program product is also provided, wherein at least one computer program is stored in the computer program or the computer program product, and the at least one computer program is loaded and executed by a processor to enable the electronic device to implement any of the above-mentioned email login methods.
[0037] The technical solution provided by this application brings at least the following beneficial effects:
[0038] In the technical solution provided by the present application, an instant messaging application in a logged-in state can provide an email login interface. On the one hand, the instant messaging account is obtained, and the first identity identifier corresponding to the instant messaging account is determined. On the other hand, the target email account entered in the email login interface is obtained, and the second identity identifier corresponding to the target email account is determined. When the first identity identifier and the second identity identifier meet the verification conditions, the email corresponding to the target email account is automatically logged in, so that the email can be automatically logged in by only entering the email account, thereby improving the efficiency of email login. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 This is a schematic diagram of an implementation environment of a mailbox login method provided in an embodiment of the present application;
[0041] Figure 2 This is a flowchart of a mailbox login method provided by an embodiment of the present application;
[0042] Figure 3 This is a schematic diagram of a display interface of an instant messaging application provided in an embodiment of the present application;
[0043] Figure 4This is a schematic diagram of a display interface of another instant messaging application provided in an embodiment of the present application;
[0044] Figure 5 This is a schematic diagram of a display interface of another instant messaging application provided in an embodiment of the present application;
[0045] Figure 6 is a flowchart of another mailbox login method provided in an embodiment of the present application;
[0046] Figure 7 It is a structural diagram of a mailbox login device provided in an embodiment of the present application;
[0047] Figure 8 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0048] Fig. 9 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0050] Figure 1 Schematic diagram of an implementation environment of a mailbox login method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes an instant messaging client 101, an instant messaging server 102, and a mailbox server 103. The mailbox login method in the embodiment of the present application can be executed by the instant messaging client 101, or by the instant messaging server 102, or by the instant messaging client 101 and the instant messaging server 102 together, or by the instant messaging client 101, the instant messaging server 102, and the mailbox server 103 together.
[0051] The instant messaging client 101 may be an instant messaging application on any terminal device. The terminal device may be a smart phone, a desktop computer, a tablet computer, a laptop computer, etc. The number of instant messaging clients 101 is not limited, and may be one or more. The instant messaging client 101 is connected to the instant messaging server 102 via a wired network or a wireless network.
[0052] The instant messaging server 102 may be a single server, or a server cluster consisting of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The instant messaging server 102 may have functions such as data processing, data storage, and data transmission and reception, which are not limited in the embodiments of the present application. The number of instant messaging servers 102 is not limited, and may be one or more. The instant messaging server 102 is connected to the mailbox server 103 via a wired network or a wireless network.
[0053] The mailbox server 103 may be a single server, or a server cluster consisting of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The mailbox server 103 may have functions such as data processing, data storage, and data transmission and reception, which are not limited in the embodiments of the present application. The number of mailbox servers 103 is not limited, and may be one or more. Optionally, the instant messaging server 102 is the mailbox server 103.
[0054] With the development of the Internet, email has become a tool for people's work and life. People exchange information through email, which brings great convenience to people's work and life, and is conducive to improving the quality of life and work efficiency. In the related technology, instant messaging applications have the function of supporting email login, and how to log in to the email in the instant messaging application has become a technology that needs to be solved urgently.
[0055] The embodiment of the present application provides a mailbox login method, which can be applied to the above implementation environment and can improve the mailbox login efficiency. Figure 2 Taking the flowchart of a mailbox login method provided in the embodiment of the present application as an example, for the convenience of description, the terminal device or instant messaging server 102 where the instant messaging client 101 executing the mailbox login method in the embodiment of the present application is located is referred to as an electronic device, and the method can be executed by an electronic device. Figure 2 As shown, the method includes the following steps.
[0056] Step 201: When the instant messaging application is in a logged-in state, obtain a target email account entered in an email login interface provided by the instant messaging application.
[0057] An instant messaging application is an application that uses instant messaging technology to achieve online communication. Instant messaging technology is a technology for sending and receiving media messages instantly, and media messages include but are not limited to text messages, picture messages, voice messages, video messages, etc. The embodiments of this application do not limit instant messaging applications.
[0058] Any user who needs to use an instant messaging application can register an instant messaging account. In the process of registering an instant messaging account, verification information corresponding to the instant messaging account can be set, and the verification information includes but is not limited to the password of the instant messaging account, the user's identity document (ID), question and answer, etc., wherein the user's identity document includes but is not limited to mobile phone number, ID number, etc.
[0059] The user can log in to the instant messaging application through the instant messaging account and the corresponding verification information. In this case, the instant messaging application is in a logged-in state. The instant messaging application can provide at least one login interface, and these login interfaces include a mailbox login interface. It can be understood that one login interface corresponds to one application, and the mailbox login interface corresponds to the mailbox application.
[0060] Optionally, the email login interface includes an account input box for entering an email account, a verification input box for entering corresponding verification information, a confirmation control for confirming whether to log in, etc.
[0061] See also Figure 3 , Figure 3 This is a schematic diagram of a display interface of an instant messaging application provided in an embodiment of the present application. The display interface of the instant messaging application includes a user avatar that can identify that the instant messaging application is in a logged-in state, and the user avatar is an image assigned to the user during the process of registering an instant messaging account, or an image selected by the user during the process of using the instant messaging application based on the instant messaging account.
[0062] The display interface of the instant messaging application also includes message controls, mailbox controls, document controls, calendar controls, and meeting controls. When the user selects the message control, the instant messaging application provides a display interface for media messages, which includes media messages sent instantly, media messages received instantly, and input methods. When the user selects the mailbox control, the instant messaging application provides the following: Figure 3 The mailbox login interface shown includes an input box for "Mailbox Account" (i.e., account input box), an input box for "Mailbox Password" (i.e., verification input box), a control for "Add" (i.e., confirmation control), and text description information such as "Add your work mailbox to gather work messages in one place". When the user selects the document control, the instant messaging application provides a document login interface, or the instant messaging application provides a display interface for displaying at least one document. When the user selects the calendar control, the instant messaging application provides a calendar login interface, or the instant messaging application provides a display interface showing a calendar. When the user selects the conference control, the instant messaging application provides a conference login interface, or the instant messaging application provides a conference operation interface.
[0063] In the embodiment of the present application, the mailbox login interface includes an account input box. In a possible implementation, the user can input the target mailbox account in the account input box through an input method, so that the electronic device obtains the target mailbox account.
[0064] In another possible implementation, step 201 includes steps 2011 to 2012 (not shown in the figure).
[0065] Step 2011, displaying at least one candidate email account in the email login interface, any one of the candidate email accounts being associated with an instant messaging account.
[0066] When registering an email account, or when using an email account, the user can configure the information bound to the email account, including but not limited to the user's ID number, mobile phone number, instant messaging account, etc. If the user configures the instant messaging account to be bound to a certain email account, then the email account is a candidate email account. If the user configures the ID number and / or mobile phone number to be bound to a certain email account, and the ID number and / or mobile phone number are also bound to the instant messaging account, the electronic device can determine that the instant messaging account is associated with the email account based on the aforementioned information. In this case, the email account is also a candidate email account.
[0067] That is, any candidate email account can be directly bound to an instant messaging account, or the verification information bound to any candidate email account can be simultaneously bound to the instant messaging account, so that any candidate email account is associated with the instant messaging account. It is understandable that an instant messaging account can be associated with at least one candidate email account. Each candidate email account can be directly displayed in the email login interface provided by the instant messaging application.
[0068] Step 2012: Obtain a selection operation on at least one candidate email account, and determine the candidate email account selected by the selection operation as the target email account.
[0069] The user can select a candidate email account from at least one candidate email account, and the electronic device determines the candidate email account as the target email account according to the selection operation. By directly displaying each candidate email account on the email login interface, it is convenient for the user to select a candidate email account, which improves the efficiency of inputting the email account, thereby improving the efficiency of email login.
[0070] Step 202: Obtain the instant messaging account of the instant messaging application.
[0071] After obtaining the target email account, the electronic device can directly obtain the instant messaging account, or first detect the target email account to detect whether the target email account meets the automatic login condition. If the target email account meets the automatic login condition, the instant messaging account is obtained.
[0072] In implementation A, step 202 includes: if the target email account satisfies the first condition, the second condition, and the third condition, obtaining an instant messaging account.
[0073] The target email account satisfies the first condition that the domain name of the target email account allows cross-domain login.
[0074] In the embodiment of the present application, the domain name of the target email account corresponds to the email server, the same domain name corresponds to the same server, and different domain names correspond to different servers. If the electronic device is allowed to access the resources of the email server, it means that the domain name of the target email account allows cross-domain login. If the electronic device cannot access the resources of the email server, it means that the domain name of the target email account does not allow cross-domain login.
[0075] Whether cross-domain login is allowed can be configured for the domain name of the target email account, and the email server can obtain and store the configuration information. When the electronic device receives the target email account, the electronic device determines the email server based on the domain name of the target email account, obtains the configuration information of the target email account from the email server, and determines whether the domain name of the target email account allows cross-domain login based on the configuration information. If the domain name of the target email account allows cross-domain login, the target email account meets the first condition. If the domain name of the target email account does not allow cross-domain login, the target email account does not meet the first condition. In this case, the electronic device can send a prompt message to the instant messaging client that the target email account does not allow cross-domain login, so as to prompt the user through the prompt message that the user cannot log in to the mailbox corresponding to the target email account. For example, the prompt message is "This mailbox has been added by another company."
[0076] The target email account satisfies the second condition that: the target email account is not disabled.
[0077] The mailbox server can maintain a mailbox account blacklist. During the use of the mailbox account, the server can obtain the content of the email sent by the mailbox account and detect the content of the email. If the email content is detected as spam, illegal email, or other abnormal email, the number of abnormal times of the mailbox account is marked plus 1. When the number of abnormal times of the mailbox account is not less than the number threshold, the mailbox account is determined to be disabled and the mailbox account is recorded in the mailbox account blacklist. Any mailbox account recorded in the mailbox account blacklist is a disabled mailbox account.
[0078] After the electronic device obtains the target email account, it sends the target email account to the email server. The email server detects whether the target email account exists in the email account blacklist. If the target email account exists in the email account blacklist, the email server determines that the target email account is disabled, and feeds back information that the target email account is disabled to the electronic device. In this case, the target email account does not meet the second condition. If the target email account does not exist in the email account blacklist, the email server determines that the target email account is not disabled, and feeds back information that the target email account is not disabled to the electronic device. In this case, the target email account meets the second condition.
[0079] It is understandable that if the target mailbox account is disabled, the electronic device can send a prompt message to the instant messaging client indicating that the target mailbox account is disabled, so as to prompt the user that the mailbox corresponding to the target mailbox account cannot be logged in through the prompt message. For example, the prompt message is "This mailbox has been disabled".
[0080] The target email account satisfies the third condition that the Internet Protocol (IP) address of the target email account is within the set address range.
[0081] An address range of an Internet Protocol address may be configured for any email account. A default address range of an Internet Protocol address may also be used as the address range of the email account. The configured address range or the default address range may be recorded as a set address range. The email server may obtain the set address range of the target email account and store the set address range.
[0082] After receiving the target email account, the electronic device obtains the Internet Protocol address of the target email account, and sends the target email account and the corresponding Internet Protocol address to the email server. If the email server determines that the Internet Protocol address of the target email account is within the set address range, the email server feeds back the information to the electronic device, and the electronic device determines that the target email account satisfies the third condition based on the information. If the email server determines that the Internet Protocol address of the target email account is outside the set address range, the email server feeds back the information to the electronic device, and the electronic device determines that the target email account does not satisfy the third condition based on the information. In this case, the electronic device can send a prompt message to the instant messaging client that the Internet Protocol address of the target email account is outside the set address range, so as to prompt the user through the prompt message that the user cannot log in to the mailbox corresponding to the target email account. For example, the prompt message is "Please add in the IP segment allowed by the administrator."
[0083] If the target email account satisfies the first condition to the third condition, it means that the target email account satisfies the automatic login condition, in which case the instant messaging account can be obtained. If the target email account does not satisfy at least one of the first condition to the third condition, it means that the target email account does not satisfy the automatic login condition, in which case a prompt message can be generated to prompt the user that the email corresponding to the target email account cannot be logged in.
[0084] In implementation method B, step 202 includes: resolving the domain name of the target email account to obtain a resolution result, the resolution result is used to describe the publishing unit of the domain name; if the publishing unit of the domain name is the same as the publishing unit of the instant messaging application, obtaining the instant messaging account of the instant messaging application.
[0085] The electronic device can extract the domain name from the target email account. Generally, the target email account includes multiple characters, and the domain name includes at least one character after a specific character among the characters. Exemplarily, the specific character is the "@" character, and the domain name includes each character after the "@" character in the target email account. For example, if the target email account is "A@b.com", the domain name is "b.com".
[0086] By performing mail exchanger (MX) resolution on the domain name, a resolution result can be obtained, which includes the name of at least one mailbox server. Based on the names of each mailbox server, the issuing unit of the domain name can be determined, so as to determine whether the issuing unit of the domain name is the issuing unit of the instant messaging application.
[0087] For example, the domain name "b.com" is MX resolved to obtain the names of two mailbox servers, namely "mx1111.c.com" and "mx2222.c.com". Based on the names of the two mailbox servers, it can be determined that the issuing unit of the domain name is unit A. Since the electronic device can obtain the issuing unit of the instant messaging application, the electronic device can determine whether the issuing unit of the domain name is the issuing unit of the instant messaging application.
[0088] In the embodiment of the present application, the target email account satisfies the fourth condition if: the issuing unit of the domain name is the same as the issuing unit of the instant messaging application. If the issuing unit of the domain name is the issuing unit of the instant messaging application, it is determined that the target email account satisfies the fourth condition. In this case, the target email account satisfies the automatic login condition and the instant messaging account can be obtained. If the issuing unit of the domain name is not the issuing unit of the instant messaging application, it is determined that the target email account does not satisfy the fourth condition. In this case, the target email account does not satisfy the automatic login condition.
[0089] If the issuing unit of the domain name is not the issuing unit of the instant messaging application, the electronic device needs to obtain the mailbox password entered in the mailbox login interface; log in to the mailbox corresponding to the target mailbox account based on the mailbox password. The implementation method of this step can be seen in the description of steps 206 to 207 (not shown in the figure), which will not be repeated here.
[0090] In implementation C, step 202 includes: obtaining a security level configured for the target email account; if the security level is lower than a level threshold, obtaining an instant messaging account of an instant messaging application.
[0091] The user can configure the security level for the target email account, and the email server can obtain and record the configuration information. The higher the security level of the target email account, the more restrictions the target email account has, that is, the security level of the target email account is positively correlated with the degree of restriction of the target email account. After the electronic device obtains the target email account, it sends the target email account to the email server. The email server determines whether the security level of the target email account is lower than the level threshold based on the configuration information of the target email account.
[0092] In the embodiment of the present application, the target email account satisfies the fifth condition if: the security level of the target email account is lower than the level threshold. If the security level of the target email account is lower than the level threshold, the email server feeds back the information to the electronic device, and the electronic device determines that the target email account satisfies the fifth condition based on the information. In this case, the target email account satisfies the automatic login condition and can obtain the instant messaging account. If the security level of the target email account is not lower than the level threshold, the email server feeds back the information to the electronic device, and the electronic device determines that the target email account does not satisfy the fifth condition based on the information. In this case, the target email account does not satisfy the automatic login condition.
[0093] If the security level of the target email account is not lower than the level threshold, the electronic device needs to obtain the email password entered in the email login interface; log in to the email corresponding to the target email account based on the email password. The implementation method of this step can be seen in the description of steps 206 to 207, which will not be repeated here.
[0094] In one possible implementation, after obtaining the security level configured for the target email account, it also includes: if the security level is not lower than the level threshold, generating a level adjustment interface and adjustment prompt information, the adjustment prompt information is used to prompt to adjust the security level in the level adjustment interface; obtaining the adjusted security level; if the adjusted security level is lower than the level threshold, obtaining the instant messaging account of the instant messaging application.
[0095] If the security level of the target email account is not lower than the level threshold, the email server will feed back the information to the electronic device, and the electronic device will generate a level adjustment interface and adjustment prompt information based on the information, and display the level adjustment interface and adjustment prompt information through the instant messaging client.
[0096] The adjustment prompt information is used to prompt the user to adjust the security level of the target email account in the level adjustment interface. If the user lowers or increases the security level of the target email account in the level adjustment interface, it means that the user has adjusted the security level of the target email account. The electronic device can obtain the adjusted security level of the target email account based on the adjustment operation and send it to the email server.
[0097] The mailbox server may update the security level of the target mailbox account to the adjusted security level of the target mailbox account. If the adjusted security level of the target mailbox account is lower than the level threshold, the mailbox server feeds back the information to the electronic device, and the electronic device determines that the target mailbox account meets the fifth condition based on the information. In this case, the target mailbox account meets the automatic login condition and can obtain the instant messaging account. If the adjusted security level of the target mailbox account is not lower than the level threshold, the mailbox server feeds back the information to the electronic device, and the electronic device determines that the target mailbox account does not meet the fifth condition based on the information. In this case, the target mailbox account does not meet the automatic login condition.
[0098] If the adjusted security level of the target email account is not lower than the level threshold, the electronic device needs to obtain the email password entered in the email login interface, and log in to the email corresponding to the target email account based on the email password. Alternatively, the adjusted security level of the target email account needs to be adjusted again until the security level is no lower than the level threshold.
[0099] If the user does not adjust the security level of the target email account in the level adjustment interface, for example, the user does not perform an operation to adjust the security level of the target email account in the level adjustment interface within a set time, or the user determines to perform an operation not to adjust the security level of the target email account in the level adjustment interface. In this case, the electronic device can generate a prompt message based on the operation, and prompt the user to log in to the email corresponding to the target email account using the email password through the prompt message, or prompt the user to log in to the email corresponding to the target email account through the prompt message.
[0100] In an exemplary embodiment, if the target email account satisfies the first to fifth conditions, it is determined that the target email account satisfies the automatic login condition, and the instant messaging account can be obtained. If the target email account does not satisfy at least one of the first to fifth conditions, it is determined that the target email account does not satisfy the automatic login condition, and at this time, a prompt message is generated to prompt the user that the mailbox corresponding to the target email account cannot be logged in or to prompt the user to log in to the mailbox corresponding to the target email account using the mailbox password.
[0101] Step 203: Determine the first identity based on the instant messaging account.
[0102] In the embodiment of the present application, the instant messaging application is an application developed and released by the first unit based on the instant messaging technology, and is used to provide office, learning, entertainment and other functions for users belonging to the second unit. Since the first unit develops and releases the instant messaging application, the first unit is the publishing unit of the instant messaging application. Since the instant messaging application provides various functions for users belonging to the second unit, the second unit is the user unit of the instant messaging application. The first unit and the second unit can be the same unit or different units.
[0103] A unit is a group that includes multiple objects (i.e., people). A unit includes at least one company, or several departments of a company, or at least one organization, etc. When an object needs to use an instant messaging application, the object needs to register for instant messaging. At this time, the object is a user of the instant messaging application.
[0104] Since the instant messaging application provides various functions for users belonging to the second unit, the instant messaging application may be recorded as a unit version instant messaging application. In this case, the instant messaging account is recorded as a unit version instant messaging account.
[0105] The electronic device may allocate a third identity identifier to a user belonging to the target unit, and the third identity identifier is used to represent the identity identifier of the user belonging to the target unit. The third identity identifier is unique, that is, a user belonging to the target unit corresponds to a unique third identity identifier, and different users belonging to the target unit correspond to different third identities. For ease of description, the third identity identifier is recorded as GID.
[0106] A user belonging to the target unit can register an instant messaging account corresponding to the user, and different users belonging to the target unit can register different instant messaging accounts. In the process of a user belonging to the target unit registering a corresponding instant messaging account, the electronic device can assign a first identity identifier to the instant messaging account. Optionally, the first identity identifier is determined based on the user's third identity identifier and the information of the instant messaging application. The first identity identifier is used to characterize the identity identifier of the user belonging to the target unit in the instant messaging application, wherein the target unit is the second unit mentioned above. The first identity identifier is unique, that is, a user belonging to the target unit corresponds to a unique first identity identifier in the instant messaging application, and different users belonging to the target unit correspond to different first identities in the instant messaging application. For ease of description, the first identity identifier is recorded as VID.
[0107] In an exemplary embodiment, when a user belonging to a target organization registers a corresponding instant messaging account, the third identity identifier may be allocated to the user first, and then the first identity identifier may be allocated to the user's instant messaging account.
[0108] Since the electronic device allocates a first identity identifier to the instant messaging account during the user registration process, the electronic device can create a first correspondence between the instant messaging account and the first identity identifier. When the electronic device obtains the instant messaging account, the first identity identifier can be determined based on the first correspondence between the instant messaging account.
[0109] Step 204, determining a second identity based on the target email account.
[0110] In the embodiment of the present application, the mailbox application is an application developed and released by the first unit and used to provide functions such as sending and receiving emails for users belonging to the second unit. Since the first unit develops and releases the mailbox application, the first unit is the publishing unit of the mailbox application. Since the mailbox application provides various functions for users belonging to the second unit, the second unit is the user unit of the mailbox application. Since the mailbox application provides functions such as sending and receiving emails for users belonging to the second unit, the mailbox application can be recorded as a unit-version mailbox application. In this case, the target mailbox account is recorded as a unit-version mailbox account.
[0111] In the embodiment of the present application, there are two ways for a user to register a target email account. The following describes these two registration methods respectively.
[0112] The first registration method: When the user needs to register the target email account, he needs to register the instant messaging account first. In other words, the user needs to register the instant messaging account first and then register the target email account. In this case, the registration process of the target email account is equivalent to being embedded in the registration process or use process of the instant messaging account. Therefore, the target email account can be recorded as corresponding to the embedded version.
[0113] A user belonging to the target unit can register the embedded version target email account corresponding to the user, and different users belonging to the target unit can register different embedded version target email accounts. In the process of a user belonging to the target unit registering the corresponding embedded version target email account, the email server can assign a second identity identifier to the target email account. Optionally, the second identity identifier is determined based on the user's third identity identifier and the information of the email application. The second identity identifier is used to characterize the identity identifier of the user belonging to the target unit in the email application, wherein the target unit is the second unit mentioned above. The second identity identifier is unique, that is, a user belonging to the target unit corresponds to a unique second identity identifier in the email application, and different users belonging to the target unit correspond to different second identities in the email application. For ease of description, the second identity identifier is recorded as VID.
[0114] The second registration method: When the user needs to register the target email account, he can register the instant messaging account first, or he does not need to register the instant messaging account first. In other words, the registration process of the instant messaging account and the registration process of the target email account are independent of each other. You can register the instant messaging account first and then register the target email account, or you can register the target email account first and then register the instant messaging account. In order to distinguish the second registration method from the first registration method, you can remember that the target email account corresponds to the ordinary version.
[0115] Since the registration process of the instant messaging account and the registration process of the target email account are independent of each other, and the third identity identifier is assigned to a user belonging to the target unit during the process of registering the corresponding instant messaging account, therefore, during the process of a user belonging to the target unit registering the ordinary version of the target email account corresponding to the user, the user may not have the third identity identifier. Based on this, the email server can assign a fourth identity identifier to the user, and the fourth identity identifier is used to characterize the user's identity identifier. The fourth identity identifier is unique, that is, one user corresponds to a unique fourth identity identifier, and different users correspond to different fourth identities. For ease of description, the fourth identity identifier is recorded as WXUID.
[0116] Optionally, before allocating the third identity identifier to the user, the fourth identity identifier may be allocated to the user first, and then the third identity identifier of the user may be determined based on the fourth identity identifier of the user and the information of the target unit to which the user belongs. Since the fourth identity identifier represents the identity identifier of the user, the third identity identifier determined based on the fourth identity identifier and the information of the target unit may represent the identity identifier of the user belonging to the target unit. In other words, the fourth identity identifier of the user does not carry the information of the target unit, while the third identity identifier of the user carries the information of the target unit.
[0117] A user belonging to the target unit can register a corresponding ordinary version of the target email account, and different users belonging to the target unit can register different ordinary version of the target email account. In the process of a user belonging to the target unit registering a corresponding ordinary version of the target email account, the email server can assign a second identity identifier to the target email account. Optionally, the second identity identifier is determined based on the user's fourth identity identifier and the information of the email application. In this case, the second identity identifier is used to characterize the user's identity identifier in the email application. The second identity identifier is unique, that is, a user corresponds to a unique second identity identifier in the email application, and different users correspond to different second identities in the email application. For ease of description, the second identity identifier is recorded as OpenID.
[0118] Since the mailbox server assigns a second identity identifier to the target mailbox account during the user's registration of the target mailbox account, the mailbox server can create a second correspondence between the target mailbox account and the second identity identifier. When the electronic device obtains the target mailbox account, the electronic device sends the target mailbox account to the mailbox server, and the mailbox server can determine the second identity identifier based on the second correspondence between the target mailbox account and send the second identity identifier to the electronic device so that the electronic device obtains the second identity identifier.
[0119] Step 205, when the first identity identifier and the second identity identifier meet the verification condition, automatically log in to the mailbox corresponding to the target mailbox account.
[0120] The electronic device can verify the first identity identifier and the second identity identifier to verify whether the two identity identifiers meet the verification conditions. As mentioned above, the target email account can correspond to the embedded version or the ordinary version. Different target email accounts have different verification methods for the first identity identifier and the second identity identifier. The following introduces these two verification methods respectively.
[0121] In verification method A, the user can register the target email account based on the first registration method. During the registration process of the target email account, the electronic device determines the first email identifier, and indicates that the target email account corresponds to the embedded version through the first email identifier. When the electronic device obtains the target email account, it can directly determine the first email identifier corresponding to the target email account. Among them, the first email identifier indicates that the target email account corresponds to the embedded version, which is equivalent to the first email identifier being used to indicate that the target email account is determined during the registration or use of the instant messaging account.
[0122] After determining the first mailbox identifier, the electronic device can determine the identity identifier used to represent the user belonging to the target organization in the mailbox application based on the target mailbox account, that is, determine the second identity identifier, and the second identity identifier is a VID (recorded as VID-2). In addition, the electronic device can determine the identity identifier used to represent the user belonging to the target organization in the instant messaging application based on the instant messaging account, that is, determine the first identity identifier, and the first identity identifier is another VID (recorded as VID-1).
[0123] In verification method A, the determination step of "the first identity identifier and the second identity identifier satisfy the verification condition" in step 205 includes: if the third identity identifier determined based on the first identity identifier is the same as the third identity identifier determined based on the second identity identifier, it is determined that the first identity identifier and the second identity identifier satisfy the verification condition, and the third identity identifier is used to represent the identity identifier of the user belonging to the target unit.
[0124] In the embodiment of the present application, the first identity of the user can be determined based on the third identity of the user and the information of the instant messaging application. Therefore, the third identity can be determined based on the first identity VID-1, and the third identity is a GID (recorded as GID-1). In addition, the second identity of the user can be determined based on the third identity of the user and the information of the mailbox application. Therefore, the third identity can be determined based on the second identity VID-2, and the third identity is another GID (recorded as GID-2).
[0125] If GID-1 and GID-2 are the same, it is determined that the first identity identifier and the second identity identifier meet the verification condition; if GID-1 and GID-2 are different, it is determined that the first identity identifier and the second identity identifier do not meet the verification condition.
[0126] In verification method B, the user can register the target email account based on the second registration method. During the registration process of the target email account, the electronic device determines the second email identifier, and indicates that the target email account corresponds to the regular version through the second email identifier. When the electronic device obtains the target email account, the second email identifier corresponding to the target email account can be directly determined. Among them, the second email identifier indicates that the target email account corresponds to the regular version, which is equivalent to the second email identifier being used to indicate that the determination process of the target email account and the registration process of the instant messaging account are independent of each other.
[0127] After determining the second mailbox identifier, the electronic device can determine the identity identifier used to represent the user in the mailbox application based on the target mailbox account, that is, determine the second identity identifier, and the second identity identifier is an OpenID. In addition, the electronic device can determine the identity identifier used to represent the user belonging to the target organization in the instant messaging application based on the instant messaging account, that is, determine the first identity identifier, and the first identity identifier is VID-1.
[0128] In verification method B, the determination step of "the first identity identifier and the second identity identifier satisfy the verification condition" in step 205 includes: if the fourth identity identifier determined based on the first identity identifier is the same as the fourth identity identifier determined based on the second identity identifier, it is determined that the first identity identifier and the second identity identifier satisfy the verification condition, and the fourth identity identifier is used to represent the user's identity identifier.
[0129] In an embodiment of the present application, the first identity of the user can be determined based on the third identity of the user and the information of the instant messaging application. Therefore, the third identity GID-1 can be determined based on the first identity VID-1. Since the third identity of the user can be determined based on the fourth identity of the user and the information of the target unit to which the user belongs, the fourth identity can be determined based on the third identity GID-1, and the fourth identity is a WXUID (recorded as WXUID-1). In addition, the second identity of the user can be determined based on the fourth identity of the user and the information of the mailbox application. Therefore, the fourth identity can be determined based on the second identity OpenID, and the fourth identity is another WXUID (recorded as WXUID-2).
[0130] If WXUID-1 and WXUID-2 are the same, it is determined that the first identity identifier and the second identity identifier meet the verification condition; if WXUID-1 and WXUID-2 are different, it is determined that the first identity identifier and the second identity identifier do not meet the verification condition.
[0131] If the first identity identifier and the second identity identifier meet the verification condition, the electronic device determines that it can automatically log in to the mailbox corresponding to the target mailbox account.
[0132] See also Figure 4 , Figure 4 : is a schematic diagram of another display interface of an instant messaging application provided in an embodiment of the present application. Figure 3 The display interface shown includes an account input box for inputting an email account. After the user enters the target email account in the account input box, the electronic device determines that the target email account meets the automatic login condition, and determines that the first identity identifier corresponding to the instant messaging account and the second identity identifier corresponding to the target email account meet the verification condition. In this case, Figure 3 The display interface shown changes to Figure 4 The display interface shown. Figure 4 In the display interface shown, the verification input box for entering the email password is hidden, and the confirmation control corresponding to "Add" is lit. Among them, when the confirmation control is not lit, the user triggers the confirmation control to generate a prompt message, which is used to prompt the user to enter the email account, or enter the email account and email password. When the confirmation control is lit, the user triggers the confirmation control and logs in to the mailbox corresponding to the target email account.
[0133] See also Figure 5 , Figure 5 is a schematic diagram of a display interface of another instant messaging application provided in an embodiment of the present application. Figure 4 In the display interface shown, click the confirmation control corresponding to "Add". In this case, the mailbox corresponding to the target mailbox account is automatically logged in. Figure 4 The display interface shown changes to Figure 5 The display interface shown. Figure 5 The display interface shown includes controls corresponding to "New Email", controls corresponding to "Delete", controls corresponding to "Reject", controls corresponding to "Reply", etc. The embodiment of the present application does not limit the functions of each control.
[0134] It is understandable that, in the process of determining whether the first identity identifier and the second identity identifier meet the verification condition, if the electronic device fails to determine whether the first identity identifier and the second identity identifier meet the verification condition within the set time due to network reasons, etc. In this case, the electronic device can generate a prompt message to prompt the user to log in to the mailbox corresponding to the target mailbox account based on the mailbox password through the prompt message. Among them, the method of logging in to the mailbox corresponding to the target mailbox account based on the mailbox password can be seen in the following description of steps 206 to 207, and steps 206 to 207 can be performed after step 204.
[0135] Step 206, when the first identity identifier and the second identity identifier do not satisfy the verification condition, obtain the email password entered in the email login interface.
[0136] If the first identity identifier and the second identity identifier do not meet the verification condition, the electronic device determines that it cannot automatically log in to the mailbox corresponding to the target mailbox account. In this case, the user needs to enter the mailbox password. Optionally, the user enters the mailbox password in the verification input box of the login interface, and the electronic device obtains the mailbox password.
[0137] Step 207: Log in to the mailbox corresponding to the target mailbox account based on the mailbox password.
[0138] When registering a target email account, the user can set the email password of the target email account. The email server can obtain the target email account and the corresponding email password, and store the corresponding relationship between the target email account and the email password.
[0139] When the user needs to log in to the mailbox, the electronic device obtains the target mailbox account and mailbox password input by the user, and sends the target mailbox account and mailbox password to the mailbox server. The mailbox server compares the target mailbox account and mailbox password with the corresponding relationship. If the corresponding relationship includes the target mailbox account and mailbox password, the mailbox server determines that the mailbox can be logged in based on the target mailbox account and mailbox password, and feeds back the information to the electronic device so that the electronic device can log in to the mailbox corresponding to the target mailbox account based on the mailbox password. If the corresponding relationship does not include the target mailbox account and / or mailbox password, the mailbox server determines that the mailbox cannot be logged in based on the target mailbox account and mailbox password, and feeds back the information to the electronic device. The electronic device generates a prompt message based on the information, and prompts the user through the prompt message that the mailbox cannot be logged in.
[0140] In an exemplary embodiment, after step 205 or step 207, it also includes: obtaining a trigger operation on a mailbox switching control in a mailbox operation interface provided by an instant messaging application, and displaying at least one switchable mailbox account related to a target mailbox account in the mailbox operation interface; obtaining a selection operation on at least one switchable mailbox account, and determining the switchable mailbox account selected by the selection operation as a related mailbox account; and logging in to the mailbox corresponding to the related mailbox account.
[0141] After logging into the mailbox corresponding to the target mailbox account, the instant messaging application provides a mailbox operation interface. Figure 5 The display interface shown includes a mailbox operation interface. Users can use the controls corresponding to "New Mail" on the mailbox operation interface to create a new email, use the controls corresponding to "Delete" to delete emails, use the controls corresponding to "Forward" to forward emails, use the controls corresponding to "Reply" to reply to emails, and so on.
[0142] Optionally, the mailbox operation interface includes a mailbox switching control. If the user triggers the mailbox switching control, the electronic device obtains the trigger operation, and based on the trigger operation, obtains at least one switchable mailbox account related to the target mailbox account from the mailbox server.
[0143] In an embodiment of the present application, during the process of registering a target email account, or during the process of using the target email account, the user can configure information bound to the target email account, including but not limited to the user's ID number, mobile phone number, other email accounts, etc. If the user configures the target email account to be bound to another email account, the other email account is a switchable email account. If the user configures the ID number and / or mobile phone number to be bound to the target email account, and the ID number and / or mobile phone number are also bound to another email account, the email server can determine that the target email account is associated with the other email account based on the aforementioned information. In this case, the other email account is also a switchable email account.
[0144] That is, any switchable email account can be directly bound to the target email account, or the verification information bound to any switchable email account can be simultaneously bound to the target email account, so that any switchable email account is associated with the target email account. It is understandable that the target email account can be associated with at least one switchable email account.
[0145] After the electronic device determines each switchable mailbox account, it can directly display each switchable mailbox account in the mailbox operation interface provided by the instant messaging application. The user can select a switchable mailbox account from at least one switchable mailbox account, and the electronic device determines the switchable mailbox account as a related mailbox account based on the selection operation. By directly displaying each switchable mailbox account on the mailbox operation interface, it is convenient for the user to select a switchable mailbox account, which improves the input efficiency of the mailbox account, thereby improving the efficiency of mailbox switching.
[0146] The electronic device can obtain the relevant email account input by the user, and automatically log in to the email corresponding to the relevant email account according to steps 202 to 205, or log in to the email corresponding to the relevant email account based on the email password corresponding to the relevant email account. These two email login methods are described above and will not be repeated here.
[0147] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant regions. For example, the email account, instant messaging account, email password, etc. involved in this application are all obtained with full authorization.
[0148] In the above method, the instant messaging application in the logged-in state can provide an email login interface. On the one hand, the instant messaging account is obtained, and the first identity identifier corresponding to the instant messaging account is determined. On the other hand, the target email account entered in the email login interface is obtained, and the second identity identifier corresponding to the target email account is determined. When the first identity identifier and the second identity identifier meet the verification conditions, the email corresponding to the target email account is automatically logged in, so that the email can be automatically logged in by only entering the email account, which improves the efficiency of email login.
[0149] The above describes the email login method provided by the embodiment of the present application from the perspective of method steps. The following is a systematic and comprehensive description. Figure 6 , Figure 6 It is a flowchart of another email login method provided in an embodiment of the present application. The email login process includes steps 601 to 610 as shown below.
[0150] Step 601: The user enters the target email account in the email login interface provided by the instant messaging application. The implementation of step 601 can be seen in the description of step 201, which will not be repeated here.
[0151] Step 602: Determine whether the resolution result of the domain name of the target mailbox account corresponds to the publishing unit of the instant messaging application program. The implementation method of step 602 can be seen in the description of implementation method B, which will not be repeated here.
[0152] If the parsing result does not correspond to the publishing unit of the instant messaging application, step 603 is executed. If the parsing result corresponds to the publishing unit of the instant messaging application, step 604 is executed.
[0153] Step 603: The user enters the mailbox password in the mailbox login interface and logs into the mailbox corresponding to the target mailbox account based on the mailbox password. The implementation of step 603 can be seen in the description of steps 206 to 207, which will not be repeated here.
[0154] Step 604, determine whether the target email account is restricted from logging in. If the target email account meets the first condition, the second condition, and the third condition, the target email account is not restricted from logging in; if the target email account does not meet at least one of the first condition, the second condition, and the third condition, the target email account is restricted from logging in. The implementation of step 604 can be found in the description of implementation method A, which will not be repeated here.
[0155] If the target email account is restricted from logging in, then execute step 605. If the target email account is not restricted from logging in, then execute step 606.
[0156] Step 605: Generate a login prompt message, which is used to prompt the user that he cannot log in to the mailbox corresponding to the target mailbox account.
[0157] Step 606, determining the mailbox identifier corresponding to the target mailbox account, wherein the mailbox identifier is the first mailbox identifier or the second mailbox identifier, and the implementation of step 606 can be seen in the description of verification method A and verification method B, which will not be repeated here.
[0158] If the mailbox identifier is the first mailbox identifier, step 607 is executed. If the mailbox identifier is the second mailbox identifier, step 608 is executed.
[0159] Step 607: Obtain the second identity of the user belonging to the target organization in the mailbox application. The implementation of step 607 can be found in the description of the first registration method, and will not be repeated here.
[0160] Step 608, obtaining the second identity of the user in the mailbox application. The implementation of step 608 can be found in the description of the second registration method, which will not be repeated here.
[0161] Step 609: Determine whether the second identity identifier and the first identity identifier of the instant messaging account satisfy the verification condition. The implementation of step 609 can be seen in the description of step 205, which will not be repeated here.
[0162] If the second identity identifier and the first identity identifier meet the verification condition, then execute step 610. If the second identity identifier and the first identity identifier do not meet the verification condition, then execute step 603.
[0163] Step 610, automatically log in to the mailbox corresponding to the target mailbox account. The implementation of step 610 can be seen in the description of step 205, which will not be repeated here.
[0164] By obtaining the first identity identifier corresponding to the instant messaging account and the second identity identifier corresponding to the target email account, the email corresponding to the target email account is automatically logged in when the first identity identifier and the second identity identifier meet the verification conditions, so that the email can be automatically logged in by only entering the email account, thereby improving the efficiency of email login.
[0165] Figure 7 FIG. 1 is a schematic diagram of a structure of a mailbox login device provided in an embodiment of the present application. Figure 7 As shown, the device comprises:
[0166] The acquisition module 701 is used to acquire the target email account entered in the email login interface provided by the instant messaging application when the instant messaging application is in a logged-in state;
[0167] The acquisition module 701 is also used to acquire the instant messaging account of the instant messaging application;
[0168] A determination module 702, configured to determine a first identity based on an instant messaging account;
[0169] The determination module 702 is further configured to determine a second identity based on the target email account;
[0170] The login module 703 is used to automatically log in to the mailbox corresponding to the target mailbox account when the first identity identifier and the second identity identifier meet the verification condition.
[0171] In one possible implementation, the acquisition module 701 is used to display at least one candidate email account in the email login interface, any candidate email account is associated with an instant messaging account; obtain a selection operation on at least one candidate email account, and determine the candidate email account selected by the selection operation as the target email account.
[0172] In a possible implementation, the acquisition module 701 is used to acquire an instant messaging account when the target email account satisfies the first condition, the second condition, and the third condition;
[0173] The first condition is that the domain name of the target email account allows cross-domain login;
[0174] The second condition is that the target email account is not disabled;
[0175] The third condition is that the Internet Protocol address of the target email account is within the set address range.
[0176] In a possible implementation, the acquisition module 701 is used to resolve the domain name of the target email account to obtain a resolution result, and the resolution result is used to describe the publishing unit of the domain name; if the publishing unit of the domain name is the same as the publishing unit of the instant messaging application, the instant messaging account of the instant messaging application is obtained.
[0177] In a possible implementation, the acquisition module 701 is used to acquire the security level configured for the target email account; if the security level is lower than the level threshold, the instant messaging account of the instant messaging application is acquired.
[0178] In a possible implementation, the device further includes:
[0179] A generation module, used for generating a level adjustment interface and adjustment prompt information if the security level is not lower than the level threshold, wherein the adjustment prompt information is used for prompting to adjust the security level in the level adjustment interface;
[0180] The acquisition module 701 is further used to acquire the adjusted security level; if the adjusted security level is lower than the level threshold, the instant messaging account of the instant messaging application is acquired.
[0181] In a possible implementation, the target email account corresponds to a first email identifier, the first email identifier is used to indicate that the target email account is determined in the process of registering or using an instant messaging account, the first identity identifier is used to represent the identity identifier of a user belonging to the target organization in an instant messaging application, and the second identity identifier is used to represent the identity identifier of a user belonging to the target organization in a email application;
[0182] The determination module 702 is further used to determine that the first identity identifier and the second identity identifier meet the verification condition when the third identity identifier determined based on the first identity identifier is the same as the third identity identifier determined based on the second identity identifier, and the third identity identifier is used to represent the identity identifier of the user belonging to the target unit.
[0183] In a possible implementation, the target email account corresponds to a second email identifier, the second email identifier is used to indicate that a process of determining the target email account and a process of registering the instant messaging account are independent of each other, the first identity identifier is used to represent an identity identifier of a user belonging to the target organization in an instant messaging application, and the second identity identifier is used to represent an identity identifier of the user in the email application;
[0184] The determination module 702 is further configured to determine that the first identity identifier and the second identity identifier satisfy a verification condition when the fourth identity identifier determined based on the first identity identifier is the same as the fourth identity identifier determined based on the second identity identifier, and the fourth identity identifier is used to represent the identity identifier of the user.
[0185] In a possible implementation, the acquisition module 701 is further configured to acquire the email password entered in the email login interface when the first identity identifier and the second identity identifier do not satisfy the verification condition;
[0186] The login module 703 is also used to log in to the mailbox corresponding to the target mailbox account based on the mailbox password.
[0187] In a possible implementation, the acquisition module 701 is further used to acquire a trigger operation on a mailbox switching control in a mailbox operation interface provided by the instant messaging application, and display at least one switchable mailbox account related to the target mailbox account in the mailbox operation interface; acquire a selection operation on at least one switchable mailbox account, and determine the switchable mailbox account selected by the selection operation as the related mailbox account;
[0188] The login module 703 is also used to log in to the mailbox corresponding to the relevant mailbox account.
[0189] In the above device, the instant messaging application in the logged-in state can provide an email login interface. On the one hand, the instant messaging account is obtained, and the first identity identifier corresponding to the instant messaging account is determined. On the other hand, the target email account entered in the email login interface is obtained, and the second identity identifier corresponding to the target email account is determined. When the first identity identifier and the second identity identifier meet the verification conditions, the email corresponding to the target email account is automatically logged in, so that the email can be automatically logged in by only entering the email account, thereby improving the efficiency of email login.
[0190] It should be understood that the above Figure 7 When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0191] Figure 8 The structure block diagram of a terminal device 800 provided by an exemplary embodiment of the present application is shown. The terminal device 800 includes: a processor 801 and a memory 802 .
[0192] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0193] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one computer program, which is used to be executed by the processor 801 to implement the mailbox login method provided in the method embodiment of the present application.
[0194] In some embodiments, the terminal device 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807 and a power supply 808.
[0195] The peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral device interface 803 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0196] The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 804 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 804 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0197] The display screen 805 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on the surface or above the surface of the display screen 805. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 805 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 805 can be one, set on the front panel of the terminal device 800; in other embodiments, the display screen 805 can be at least two, respectively set on different surfaces of the terminal device 800 or in a folding design; in other embodiments, the display screen 805 can be a flexible display screen, set on the curved surface or folding surface of the terminal device 800. Even, the display screen 805 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 805 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0198] The camera assembly 806 is used to capture images or videos. Optionally, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0199] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 801 for processing, or input them into the radio frequency circuit 804 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 800. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 807 may also include a headphone jack.
[0200] The power supply 808 is used to power various components in the terminal device 800. The power supply 808 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 808 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0201] In some embodiments, the terminal device 800 further includes one or more sensors 809 , including but not limited to: an acceleration sensor 811 , a gyroscope sensor 812 , a pressure sensor 813 , an optical sensor 814 , and a proximity sensor 815 .
[0202] The acceleration sensor 811 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 800. For example, the acceleration sensor 811 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 801 can control the display screen 805 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 can also be used for collecting game or user motion data.
[0203] The gyroscope sensor 812 can detect the body direction and rotation angle of the terminal device 800, and the gyroscope sensor 812 can cooperate with the acceleration sensor 811 to collect the user's 3D actions on the terminal device 800. The processor 801 can implement the following functions based on the data collected by the gyroscope sensor 812: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0204] The pressure sensor 813 can be set on the side frame of the terminal device 800 and / or the lower layer of the display screen 805. When the pressure sensor 813 is set on the side frame of the terminal device 800, it can detect the user's holding signal of the terminal device 800, and the processor 801 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is set on the lower layer of the display screen 805, the processor 801 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0205] The optical sensor 814 is used to collect the ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the display screen 805 according to the ambient light intensity collected by the optical sensor 814. Specifically, when the ambient light intensity is high, the display brightness of the display screen 805 is increased; when the ambient light intensity is low, the display brightness of the display screen 805 is reduced. In another embodiment, the processor 801 can also dynamically adjust the shooting parameters of the camera assembly 806 according to the ambient light intensity collected by the optical sensor 814.
[0206] The proximity sensor 815, also called a distance sensor, is usually arranged on the front panel of the terminal device 800. The proximity sensor 815 is used to collect the distance between the user and the front of the terminal device 800. In one embodiment, when the proximity sensor 815 detects that the distance between the user and the front of the terminal device 800 is gradually decreasing, the processor 801 controls the display screen 805 to switch from the screen-on state to the screen-off state; when the proximity sensor 815 detects that the distance between the user and the front of the terminal device 800 is gradually increasing, the processor 801 controls the display screen 805 to switch from the screen-off state to the screen-on state.
[0207] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the terminal device 800, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0208] Fig. 9This is a schematic diagram of the structure of the server provided in the embodiment of the present application. The server 900 may have relatively large differences due to different configurations or performances, and may include one or more processors 901 and one or more memories 902, wherein the one or more memories 902 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 901 to implement the mailbox login method provided in the above-mentioned various method embodiments. Exemplarily, the processor 901 is a CPU. Of course, the server 900 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 900 may also include other components for implementing device functions, which will not be described in detail here.
[0209] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned mailbox login methods.
[0210] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0211] In an exemplary embodiment, a computer program or a computer program product is also provided, wherein at least one computer program is stored in the computer program or the computer program product, and the at least one computer program is loaded and executed by a processor to enable an electronic device to implement any of the above-mentioned mailbox login methods.
[0212] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0213] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0214] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for logging into an email address. It is characterized in that The method comprises: When the instant messaging application is in a logged-in state, obtaining a target email account entered in an email login interface provided by the instant messaging application; Obtaining an instant messaging account of the instant messaging application; Determining a first identity based on the instant messaging account; Determining a second identity based on the target email account; When the first identity identifier and the second identity identifier meet the verification condition, the mailbox corresponding to the target mailbox account is automatically logged in.
2. The method according to claim 1, It is characterized in that The obtaining of the target email account entered in the email login interface provided by the instant messaging application comprises: Displaying at least one candidate email account in the email login interface, any one of the candidate email accounts being associated with the instant messaging account; A selection operation on the at least one candidate email account is obtained, and the candidate email account selected by the selection operation is determined as the target email account.
3. The method according to claim 1, It is characterized in that The obtaining of the instant messaging account of the instant messaging application comprises: If the target email account satisfies the first condition, the second condition and the third condition, obtaining the instant messaging account; The first condition is that the domain name of the target email account allows cross-domain login; The second condition is that the target email account is not disabled; The third condition is that the Internet Protocol address of the target email account is within a set address range.
4. The method according to claim 1, It is characterized in that The obtaining of the instant messaging account of the instant messaging application comprises: Resolving the domain name of the target email account to obtain a resolution result, wherein the resolution result is used to describe the issuing unit of the domain name; If the issuing unit of the domain name is the same as the issuing unit of the instant messaging application, the instant messaging account of the instant messaging application is obtained.
5. The method according to claim 1, It is characterized in that The obtaining of the instant messaging account of the instant messaging application comprises: Obtaining a security level configured for the target email account; If the security level is lower than the level threshold, the instant messaging account of the instant messaging application is obtained.
6. The method according to claim 5, It is characterized in that After obtaining the security level configured for the target email account, the method further includes: If the security level is not lower than the level threshold, generating a level adjustment interface and adjustment prompt information, wherein the adjustment prompt information is used to prompt the user to adjust the security level on the level adjustment interface; Get the adjusted security level; If the adjusted security level is lower than the level threshold, the instant messaging account of the instant messaging application is obtained.
7. The method according to claim 1, It is characterized in that The target email account corresponds to a first email identifier, the first email identifier is used to indicate that the target email account is determined during the process of registering or using the instant messaging account, the first identity identifier is used to represent the identity identifier of a user belonging to the target organization in the instant messaging application, and the second identity identifier is used to represent the identity identifier of a user belonging to the target organization in the email application; The method further comprises: If the third identity determined based on the first identity is the same as the third identity determined based on the second identity, it is determined that the first identity and the second identity satisfy the verification condition, and the third identity is used to represent the identity of a user belonging to the target unit.
8. The method according to claim 1, It is characterized in that The target email account corresponds to a second email identifier, the second email identifier is used to indicate that the determination process of the target email account and the registration process of the instant messaging account are independent of each other, the first identity identifier is used to represent the identity identifier of the user belonging to the target organization in the instant messaging application, and the second identity identifier is used to represent the identity identifier of the user in the email application; The method further comprises: If the fourth identity identifier determined based on the first identity identifier is the same as the fourth identity identifier determined based on the second identity identifier, it is determined that the first identity identifier and the second identity identifier meet the verification condition, and the fourth identity identifier is used to represent the identity identifier of the user.
9. The method according to claim 1, It is characterized in that The method further comprises: If the first identity identifier and the second identity identifier do not satisfy the verification condition, obtaining the email password entered in the email login interface; Log in to the mailbox corresponding to the target mailbox account based on the mailbox password.
10. The method according to claim 1 or 9, It is characterized in that The method further comprises: Acquire a triggering operation of a mailbox switching control in a mailbox operation interface provided by the instant messaging application, and display at least one switchable mailbox account related to the target mailbox account in the mailbox operation interface; Obtaining a selection operation on the at least one switchable email account, and determining the switchable email account selected by the selection operation as a related email account; Log in to the email address corresponding to the relevant email account.
11. A mailbox login device, It is characterized in that The device comprises: An acquisition module, used to acquire a target email account entered in an email login interface provided by the instant messaging application when the instant messaging application is in a logged-in state; The acquisition module is further used to acquire the instant messaging account of the instant messaging application; A determination module, configured to determine a first identity based on the instant messaging account; The determination module is further configured to determine a second identity based on the target email account; The login module is used to automatically log in to the mailbox corresponding to the target mailbox account when the first identity identifier and the second identity identifier meet the verification conditions.
12. An electronic device, It is characterized in that The electronic device includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the email login method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by the processor so that the electronic device implements the mailbox login method as described in any one of claims 1 to 10.
14. A computer program product, It is characterized in that The computer program product stores at least one computer program, and the at least one computer program is loaded and executed by a processor so that the electronic device implements the mailbox login method as described in any one of claims 1 to 10.
