1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device and a method for hiding login information.
2. Description of Related Art
A user usually inputs personal information (account/password) to login a system. However, in public areas, if the user does not want the personal information or certain personal files to be seen by others, it can be troublesome.
Therefore, it is desirable to provide an electronic device and a method for hiding login information, which can overcome the above-mentioned shortcomings.
Embodiments of the disclosure will be described with reference to the accompanying drawings.
Referring to
The electronic device 20 may be a computer or other electronic terminal with a network communication function. The server 30 is a networked server, which is connected with the electronic device 20 through network. The electronic device 20 includes a receiving unit 201, a transmission unit 202, a storage unit 203, and a processing unit 204. The receiving unit 201 receives data transmitted by the server 30. The transmission unit 202 sends data to the server 30 and the external electronic device 10. The storage unit 203 provides space for storing data.
The processing unit 204 includes a detection module 2041, a user information determination module 2042, a login module 2043, and a transmission control module 2044. Functions of the modules will be described together with
The server 30 includes a communication unit 301, a verification unit 303, and a database 305. The communication unit 301 receives data from the electronic device 20 and transmits user information from the database 305 to the electronic device 20. Functions of the server 30 will be described together with
In step S11, the detection module 2041 determines whether the electronic device 20 generates a login interface for indicating the user to input account information and password. If yes, the procedure goes to the step S12, otherwise, the procedure repeats step S11.
In step S12, the transmission control module 2044 controls the transmission unit 202 to stop sending the display information of the electronic device 20 to the external electronic device 10.
In step S13, the receiving unit 201 receives the input account information and password.
In step S14, the user information determination module 2042 verifies whether the input account information and password match user information stored in the storage unit 203. If yes, the procedure goes to step S15, otherwise, the procedure returns to step S13.
In step S15, the login module 2043 logs into the electronic device 20 system according to the input account information and password.
In step S16, the transmission control module 2044 controls the transmission unit 202 to send the display information of the electronic device 20 to the external electronic device 10.
In other embodiments, steps S14 and S15 can be replaced by: the detection module 2041 determines whether the user finishes inputting the account information and password, if yes, the procedure goes to step S16, otherwise, the procedure jumps back to the step S13.
Through the method above, the electronic device 20 stops transmitting display information to the external electronic device 10 during inputting the account information and password, and sends the display information of the electronic device 20 to the external electronic device 10 after finishing inputting the account information and password or the user information corresponding to the input account information and password that is already stored in the storage unit 203.
In step S21, the detection module 2041 determines whether the electronic device 20′ generates the login interface for the user to input account information and password. If yes, the procedure goes to the step S22, otherwise, the flow of the method repeats the step S21.
In step S22, the transmission control module 2044 controls the transmission unit 202 to stop sending the display information of the electronic device 20′ to the external electronic device 10.
In step S23, the receiving unit 201 receives the input account information and password.
In step S24, the user information determination module 2042 verifies whether the input account information and password match user information stored in the storage unit 203, if yes, the procedure goes to the step S27, otherwise, the procedure goes to the step S25.
In step S25, the transmission unit 202 sends the input account information and password to the server 30.
In step S26, the communication unit 301 receives the input account information and password, the verification unit 303 verifies whether the input account information and password match user information stored in the database 305, if yes, the procedure goes to the step S27, otherwise, the procedure goes to the step S30.
In step S27, the communication unit 301 of the server 30 sends the user information corresponding to the input account information and password to the electronic device 20′, the receiving unit 201 receives the user information and stores the user information to the storage unit 203.
In step S28, the login module 2043 logs into the electronic device 20 according to the input account information and password, especially, the login module 2043 logs in to the electronic device 20′ to display files associated with the input password when the input account information has been set with several different passwords.
In step S29, the transmission control module 2044 controls the transmission unit 202 to send the display information of the electronic device 20′ to the external electronic device 10.
In step S30, the setting module 2045 determines whether the user wants to set the input password associated with certain files, for example, the setting module 2045 determines whether a setting button (not shown) is pressed, if yes, the procedure goes to the step S31, otherwise, the procedure goes to the step S23.
In step S31, the setting module 2045 sets the input password associated with the certain files.
Particular embodiments are shown here and described by way of illustration only. The principles and the features of the present disclosure may be employed in various and numerous embodiments thereof without departing from the scope of the disclosure as claimed. The above-described embodiments illustrate the scope of the disclosure but do not restrict the scope of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
101127905 | Aug 2012 | TW | national |