Disclosure of Invention
The embodiment of the invention aims to provide a login information prompting method and a login information prompting device so as to provide more comprehensive login information prompting for a user and meet the requirements of the user.
In order to achieve the above object, an embodiment of the present invention provides a login information prompting method, where the method includes:
receiving a display instruction aiming at a login interface;
responding to the display instruction, and determining first historical login information corresponding to a first historical login event according to login information corresponding to a pre-stored historical login event; the first historical login event is the historical login event of which the login time point is closest to the current moment;
determining a first login mode and a first login account corresponding to the first historical login event based on the first historical login information;
and displaying the login interface, wherein the login interface comprises at least one login area corresponding to a login mode, and prompt information comprising the first login account is displayed in the login area corresponding to the first login mode in the login interface.
Optionally, the method further comprises:
monitoring whether a login event occurs;
and if so, storing the login information corresponding to the login event.
Optionally, the at least one login method includes: at least one of a user name encryption code mode and a predetermined type of third party login mode.
Optionally, the method further comprises:
and adopting a preset first highlighting mode to highlight the prompt information in the login area corresponding to the first login mode.
Optionally, the method further comprises:
and adopting a preset first highlighting mode to highlight the prompt information in the login area corresponding to the first login mode.
The method further comprises the following steps:
and highlighting the login area corresponding to the first login mode in the login interface by adopting a preset second highlighting mode.
In order to achieve the above object, an embodiment of the present invention further provides a login information prompt apparatus, where the apparatus includes: a display instruction receiving module, a first determining module, a second determining module and a login interface display module,
the display instruction receiving module is used for receiving a display instruction aiming at the login interface;
the first determining module is used for responding to the display instruction and determining first historical login information corresponding to a first historical login event according to login information corresponding to a prestored historical login event; the first historical login event is the historical login event of which the login time point is closest to the current moment;
the second determining module is configured to determine, based on the first historical login information, a first login manner and a first login account corresponding to the first historical login event;
the login interface display module is used for displaying the login interface, wherein the login interface comprises at least one login area corresponding to a login mode, and prompt information comprising the first login account is displayed in the login area corresponding to the first login mode in the login interface.
Optionally, the apparatus further comprises:
the monitoring module is used for monitoring whether a login event occurs or not;
and the storage module is used for storing the login information corresponding to the login event under the condition that the monitoring result obtained by the monitoring module is yes.
Optionally, the at least one login method includes: at least one of a user name encryption code mode and a predetermined type of third party login mode.
Optionally, the apparatus further comprises:
and the first highlighting module is used for highlighting the prompt message in a login area corresponding to the first login mode by adopting a preset first highlighting mode.
Optionally, the apparatus further comprises:
and the second highlighting module is used for highlighting the login area corresponding to the first login mode in the login interface by adopting a preset second highlighting mode.
According to the login information prompting method and device provided by the embodiment of the invention, the prompt information containing the first login account is displayed in the login area corresponding to the first login mode in the login interface, wherein the first login mode is the login mode corresponding to the first historical login event, the first login account is the login account corresponding to the first historical login event, and the first historical login event is the historical login event with the login time point nearest to the current time. Therefore, when the login interface comprises the login area corresponding to at least one login mode, more comprehensive login information prompts can be visually provided for the user, the user can clearly know the latest first historical login information, the requirements of the user are met, and the user experience is improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a login information prompting method and apparatus, which are applied to an electronic device, where the electronic device may be a smart phone, a tablet computer, a notebook computer, or a desktop computer, and the like.
A method for prompting login information according to an embodiment of the present invention is described below.
It should be noted that the functional software for implementing the information registration method provided by the embodiment of the present invention may be a plug-in of a client having a registration requirement, where the client having the registration requirement may be in a web page form or a non-web page form, the web page form is a web portal accessed through a browser, and the non-web page form is a form that requires downloading and installing a software package to a local place.
Referring to fig. 1, fig. 1 is a flowchart illustrating a login information prompting method according to an embodiment of the present invention. As shown in fig. 1, a method for prompting login information according to an embodiment of the present invention may include:
s101, receiving a display instruction aiming at a login interface;
the login interface can be any login interface of application software or a website with a login function.
Specifically, when the login interface is the login interface corresponding to the application software or the website, when it is detected that the corresponding application software is started or the corresponding website is opened, it is considered that a display instruction for the login interface is received; alternatively, when a specific operation is detected for the started application software or the opened website, it is considered that a display instruction for the login interface is received, for example, after the user clicks a "login" button provided in a certain website, it is considered that a display instruction for the login interface is received.
It is understood that the manner of receiving the display instruction for the login interface is not limited to the above, and other manners existing in the prior art are applicable to the present invention.
S102, responding to the display instruction, and determining first historical login information corresponding to a first historical login event according to login information corresponding to a pre-stored historical login event; the first historical login event is the historical login event of which the login time point is closest to the current moment;
wherein, the login event refers to the successful login behavior occurring on the login interface.
The login information at least comprises: login time, login mode and login account.
Optionally, if the user logs in, and performs operations such as "automatic login" and "remember password", the login information may further include: the login password is used for simplifying the login process of the user in the next login and improving the login speed.
S103, determining a first login mode and a first login account corresponding to the first historical login event based on the first historical login information;
and S104, displaying the login interface, wherein the login interface comprises at least one login area corresponding to a login mode, and prompt information comprising the first login account is displayed in the login area corresponding to the first login mode in the login interface.
Wherein the at least one login manner comprises: at least one of a user name encryption code mode and a predetermined type of third party login mode.
It is emphasized that any of the QQ login platform, the wechat login platform, the microblog login platform, and the like may be used as a predetermined type of third party login method. It is understood that it is reasonable that one login interface may include one predetermined type of third party login method, or may include at least two predetermined types of third party login methods.
The login area may be an area where the login identifier corresponding to the corresponding login manner is located and an area around the login identifier, and it is reasonable to say that, for the form of the user name encryption code, the login area may also include an area where the password is located.
Wherein, the prompt message may include: and one or more of character information, graphic information, color mark information and the like.
Specifically, as shown in fig. 2, when the first historical login event is a successful login behavior of the user using a QQ login platform, the first login manner is a QQ login platform login manner, the first login account is a QQ account, and at this time, the "last login manner is a QQ account: 123456 "to prompt the user.
It is easy to see that, compared with the prior art in which only the user name is displayed as shown in fig. 3, the login information prompting method shown in fig. 2 is more suitable for the user's requirement.
According to the login information prompting method provided by the embodiment of the invention, the prompt information containing the first login account is displayed in the login area corresponding to the first login mode in the login interface, wherein the first login mode is the login mode corresponding to the first historical login event, the first login account is the login account corresponding to the first historical login event, and the first historical login event is the historical login event with the login time point closest to the current time. Therefore, when the login interface comprises the login area corresponding to at least one login mode, more comprehensive login information prompts can be visually provided for the user, the user can clearly know the latest first historical login information, the requirements of the user are met, and the user experience is improved. In addition, if the login is performed in the same login mode as the login information in the first history, not only can the repeated registration of the user be avoided, but also the problem that the displayed content of the application software after the login is inconsistent with the displayed content after the login is performed last time when the login information used by the user each time is inconsistent with the login information used last time can be well avoided, and the misunderstanding of data loss is eliminated.
Optionally, on the basis of the embodiment shown in fig. 1, the login information prompting method provided in the embodiment of the present invention may further include:
monitoring whether a login event occurs; if so, storing login information corresponding to the login event; otherwise, no processing is done.
It can be seen that, by applying the embodiment, the login information corresponding to the login event can be stored in real time, and preparation is made for prompting the login information to the user each time.
Optionally, on the basis of the embodiment shown in fig. 1, the login information prompting method provided in the embodiment of the present invention may further include:
and adopting a preset first highlighting mode to highlight the prompt information in the login area corresponding to the first login mode.
The first highlighting manner may be: one or more of highlight display, magnification display, boldface display, shading adding, frame adding, dynamic display and the like; wherein the dynamic display may include: dynamic display modes such as shaking, gradual enlargement, and flickering.
It is to be understood that the first highlighting is not limited to the above-mentioned embodiments, other manners are possible, and the embodiments of the present invention are not limited thereto.
Specifically, as shown in fig. 4, compared to fig. 2, the prompt information "the last login mode is a QQ account: 123456 "add shading and borders.
The first historical login information can be quickly obtained from the login interface by the user.
Optionally, on the basis of the embodiment shown in fig. 1, the login information prompting method provided in the embodiment of the present invention may further include:
and highlighting the login area corresponding to the first login mode in the login interface by adopting a preset second highlighting mode.
The second highlighting manner may be: one or more of highlight display, enlarged display, frame adding, dynamic display and the like; wherein the dynamic display may include: dynamic display modes such as shaking, gradual enlargement, and flickering.
It is to be understood that the second highlighting is not limited to the above-mentioned embodiments, other manners are possible, and the embodiments of the present invention are not limited thereto.
Specifically, as shown in fig. 5, compared to fig. 2, the area where the QQ login id is located may be highlighted by adding a frame. In practice, the color of the added frame can be set arbitrarily.
After the login area corresponding to the first login mode is highlighted, the first login mode is displayed more prominently, the prompt effect is better, and a user can more quickly acquire the first historical login information from the login interface.
It should be emphasized that the "first" in the above-mentioned "first historical login event" is not meant in any limiting sense, but is merely used for naming the historical login event whose login time point is closest to the current time point and other historical login events. Similarly, "first" in "first login method" and "first" in "first login account" do not have any limiting meaning. Similarly, the first highlighting in the first highlighting and the second highlighting in the second highlighting are used only to distinguish different highlighting and are not intended to have any limiting meaning.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a login information prompting device, which is described in detail below.
As shown in fig. 6, an embodiment of the present invention further provides a login information prompting apparatus, including: a displayinstruction receiving module 601, a first determiningmodule 602, a second determiningmodule 603 and a logininterface display module 604,
a displayinstruction receiving module 601, configured to receive a display instruction for a login interface;
a first determiningmodule 602, configured to determine, in response to the display instruction, first historical login information corresponding to a first historical login event according to login information corresponding to a pre-stored historical login event; the first historical login event is the historical login event of which the login time point is closest to the current moment;
wherein, the login event refers to the successful login behavior occurring on the login interface.
The login information at least comprises: login time, login mode and login account.
A second determiningmodule 603, configured to determine, based on the first historical login information, a first login manner and a first login account corresponding to the first historical login event;
a logininterface display module 604, configured to display the login interface, where the login interface includes a login area corresponding to at least one login manner, and prompt information including the first login account is displayed in the login area corresponding to the first login manner in the login interface.
Wherein the at least one login manner comprises: at least one of a user name encryption code mode and a predetermined type of third party login mode.
It is emphasized that any of the QQ login platform, the wechat login platform, the microblog login platform, and the like may be used as a predetermined type of third party login method. It is understood that it is reasonable that one login interface may include one predetermined type of third party login method, or may include at least two predetermined types of third party login methods.
The login area may be an area where the login identifier corresponding to the corresponding login manner is located and an area around the login identifier, and it is reasonable to say that, for the form of the user name encryption code, the login area may also include an area where the password is located.
The prompt message may include: and one or more of character information, graphic information, color mark information and the like.
According to the login information prompting device provided by the embodiment of the invention, the prompt information containing the first login account is displayed in the login area corresponding to the first login mode in the login interface, wherein the first login mode is the login mode corresponding to the first historical login event, the first login account is the login account corresponding to the first historical login event, and the first historical login event is the historical login event with the login time point closest to the current time. Therefore, when the login interface comprises the login area corresponding to at least one login mode, more comprehensive login information prompts can be visually provided for the user, the user can clearly know the latest first historical login information, the requirements of the user are met, and the user experience is improved. In addition, if the login is performed in the same login mode as the login information in the first history, not only can the repeated registration of the user be avoided, but also the problem that the displayed content of the application software after the login is inconsistent with the displayed content after the login is performed last time when the login information used by the user each time is inconsistent with the login information used last time can be well avoided, and the misunderstanding of data loss is eliminated.
Optionally, on the basis of the embodiment shown in fig. 6, the login information prompt apparatus provided in the embodiment of the present invention may further include:
the monitoring module is used for monitoring whether a login event occurs or not;
and the storage module is used for storing the login information corresponding to the login event under the condition that the monitoring result obtained by the monitoring module is yes.
It can be seen that, by applying the embodiment, the login information corresponding to the login event can be stored in real time, and preparation is made for prompting the login information to the user each time.
Optionally, on the basis of the embodiment shown in fig. 6, the login information prompt apparatus provided in the embodiment of the present invention may further include:
and the first highlighting module is used for highlighting the prompt message in a login area corresponding to the first login mode by adopting a preset first highlighting mode.
The first highlighting manner may be: one or more of highlight display, magnification display, boldface display, shading adding, frame adding, dynamic display and the like; wherein the dynamic display may include: dynamic display modes such as shaking, gradual enlargement, and flickering.
It is to be understood that the first highlighting is not limited to the above-mentioned embodiments, other manners are possible, and the embodiments of the present invention are not limited thereto.
The first historical login information can be quickly obtained from the login interface by the user.
Optionally, on the basis of the embodiment shown in fig. 6, the login information prompt apparatus provided in the embodiment of the present invention may further include:
and the second highlighting module is used for highlighting the login area corresponding to the first login mode in the login interface by adopting a preset second highlighting mode.
The second highlighting manner may be: one or more of highlight display, enlarged display, frame adding, dynamic display and the like; wherein the dynamic display may include: dynamic display modes such as shaking, gradual enlargement, and flickering.
It is to be understood that the second highlighting is not limited to the above-mentioned embodiments, other manners are possible, and the embodiments of the present invention are not limited thereto.
After the login area corresponding to the first login mode is highlighted, the first login mode is displayed more prominently, the prompt effect is better, and a user can more quickly acquire the first historical login information from the login interface.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.