public static OfflineRegistrationProfile Load(string username)
        {
            OfflineRegistrationProfile offlineRegistrationProfile = new OfflineRegistrationProfile();

            offlineRegistrationProfile.data = RegistrationProfile.Load(username);
            return(offlineRegistrationProfile);
        }
Пример #2
0
        private IEnumerator registerAccount(string firstName, string username, string parentEmail, string password)
        {
            OfflineRegistrationProfile profile = OfflineRegistrationProfile.Load(username);

            profile.FirstName   = firstName;
            profile.Username    = username;
            profile.ParentEmail = parentEmail;
            profile.Password    = password;
            profile.Save();
            yield return(null);

            ISession session = new OfflineSession(username);

            onCreateChildAccountComplete(new RegisterResult(success: true, session, null));
            onCreateSuccess(session);
        }
Пример #3
0
 public OfflineLocalUser(string userName)
 {
     registrationProfile = OfflineRegistrationProfile.Load(userName);
 }