It will lock your account and make you change your password. After you've done this, it will allow you to log in from both locations.

If you go a certain amount of time (I don't know how long) without logging in from one of the locations, it will lock it again upon trying to log on. Simply repeat the process.