Package er.example.erxpartials.model

Examples of er.example.erxpartials.model.Partial_AuthenticatedPerson.username()


    NSArray<Person> allPersons = Person.fetchAllPersons(ec);
    for ( Person aPerson : allPersons) {
      Partial_AuthenticatedPerson auth = aPerson.partialForClass(Partial_AuthenticatedPerson.class);
      auth.setLastLoginDate(new NSTimestamp());
      auth.setUsername( aPerson.firstName().toLowerCase() + "." + aPerson.lastName().toLowerCase() );
      auth.setPassword( ERXCrypto.base64HashedString(auth.username()) );
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.