rewrite  auth module

rewrite auth model.