recently I want to write some website login program using ERC tokens ,can anyone show me the way to do that ? an idea or a route are both good for me
Honestly, I think you would be better off to login with metamask or equivalent. Logging in with an ERC token makes little very sense to me. Please clarify what exactly are you trying to achieve.
Now when you login with 'metamask' you have to cryptographically prove that you own an Ethereum address, not sure how to replicate that for a ERC Token, especially with ERC20 tokens. Are you asking about ERC721 tokens?
I mean you could have a smart contract that handles authentication that subtracts ERC20 tokens every time a user logs in. Let me know if you need more details.