Esempio n. 1
0
 /**
  * Creates a new membershipUser in the system. Users created in this manner may login to the
  * system.
  *
  * @param userName
  * @param password
  * @return
  */
 public int registerMember(String userName, String password) {
   blackboard.startTransaction();
   int membershipId = blackboard.getMembershipBoard().registerMember(userName, password);
   blackboard.commitTransaction();
   return membershipId;
 }
Esempio n. 2
0
 /**
  * Returns true if the provided userName and password are correctly matched to a user in the
  * system with login credentials
  *
  * @param userName
  * @param password
  * @return
  */
 public boolean authenticate(String userName, String password) {
   return blackboard.getMembershipBoard().authenticate(userName, password);
 }