[FIX] Logic error when generating resetpass token