public DataForLogin User_GetDataForLoginByUserame(string username) { if (!CheckClient()) { return(null); } AuthUser user = UserBO.Instance.GetAuthUser(username); if (user == null || user == MaxLabs.bbsMax.Entities.User.Guest) { return(null); } DataForLogin userProxy = ProxyConverter.GetAuthUserProxy(user); return(userProxy); }
public DataForLogin User_GetDataForLogin(int userID) { if (!CheckClient()) { return(null); } AuthUser user = UserBO.Instance.GetAuthUser(userID); if (user == null || user == MaxLabs.bbsMax.Entities.User.Guest) { return(null); } DataForLogin userProxy = ProxyConverter.GetAuthUserProxy(user); userProxy.FriendVersion = user.FirendVersion; return(userProxy); }
public DataForLogin User_GetDataForLoginByEmail(string email, out bool duplicateEmail) { duplicateEmail = false; if (!CheckClient()) { return(null); } AuthUser user = UserBO.Instance.GetAuthUserByEmail(email, out duplicateEmail); if (user == null || user == MaxLabs.bbsMax.Entities.User.Guest) { return(null); } DataForLogin userProxy = ProxyConverter.GetAuthUserProxy(user); return(userProxy); }