Update AuthLegacy.java