With technology development, the number of users of smart mobile devices has also grown steadily in recent years. This is mainly due to the convenience offered by smart mobile devices. Based on the wireless non-contact Radio-Frequency Identification (RFID) technology, SONY, Philips, and Nokia jointly developed the Near-Field Communication (NFC) technology. NFC, characterized by lower power consumption, connectivity with one device at a time, and higher confidentiality and security, is mainly used in door access and payment applications. This study used online game and Telecom Based Micropayment as examples to develop a two-factor authentication mechanism for mobile devices built with NFC functionality. With the increasing popularity of online games, virtual goods in the games have gradually been given a value like physical goods. Many problems such as account fraud and thievery of virtual goods have therefore derived. In the present, many gaming companies have used two-factor authentication of user identity. Although such mechanism offers additional protection of user accounts, the verification is not user-friendly enough, and extra cost of the verification device may be incurred. This study proposed to integrate online gaming accounts and NFC tags for two-factor authentication. Users only need to use their mobile device built with an NFC sensor to communicate with portable NFC tags for server authentication. Later, they can input their account and password to log into the game.