public static bool Login(string user, string password) { // ## bundleresource://238.fwk28311783:1/offline-authentication.xml(21,24) OfflineAuthentication auth = OfflineAuthentication.Find(user); if (auth == null) { return(false); } else { return(auth.PasswordHash == password.GetHashCode()); } }
public static void Store(string user, string password) { // ## bundleresource://238.fwk28311783:1/offline-authentication.xml(51,27) OfflineAuthentication auth = OfflineAuthentication.Find(user); if (auth == null) { auth = new OfflineAuthentication(); auth.User = user; auth.PasswordHash = password.GetHashCode(); auth.Create(); } else { auth.PasswordHash = password.GetHashCode(); auth.Update(); } }
public static void Store(string user,string password) { // ## bundleresource://238.fwk28311783:1/offline-authentication.xml(51,27) OfflineAuthentication auth = OfflineAuthentication.Find(user); if (auth == null) { auth = new OfflineAuthentication(); auth.User = user; auth.PasswordHash = password.GetHashCode(); auth.Create(); } else { auth.PasswordHash = password.GetHashCode(); auth.Update(); } }