71a72,80
>   
>   // 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' AND time() > %d",
>             time() - 1, $account->uid, $purpose, time()
>           );
