fix cucas authen, the old code work on 2.1.2 but not 1.9.2

--HG--
branch : java