74c74,83 < --- > > // If the current user already has a ticket for this purpose, we'll expire it, so that we get > // only one active ticket per user and purpose. We're not deleting it or replacing it to make > // sure tickets aren't reused too quickly (see comment in loginticket_check_expiration()). > db_query("UPDATE {loginticket} > SET expires = %d > WHERE uid = %d AND purpose = '%s'", > time() - 1, $account->uid, $purpose > ); > 78,79c87,88 < ); < --- > ); >