package com.alexrnl.jbetaseries.request.members;

import com.alexrnl.jbetaseries.request.APIAddresses;
import com.alexrnl.jbetaseries.request.Request;
import com.alexrnl.jbetaseries.request.Verb;
import com.alexrnl.jbetaseries.request.parameters.Login;
import com.alexrnl.jbetaseries.request.parameters.Password;

/**
 * Authenticate a member.<br />
 * @author Alex
 */
public class MemberAuth extends Request {
	
	/**
	 * Constructor #1.<br />
	 * @param login
	 *        the login of the member.
	 * @param password
	 *        the password of the member (encoded in MD5).
	 */
	public MemberAuth (final String login, final String password) {
		super(Verb.POST, APIAddresses.MEMBERS_AUTH);
		addParameter(new Login(login));
		addParameter(new Password(password));
	}
}

@@ -43,16 +43,62 @@
 mbers;%0A%0A
+import com.alexrnl.commons.utils.StringUtils;%0A
 import c
@@ -595,17 +595,48 @@
  member 
-(
+in clear text %3Cem%3Ewill later be 
 encoded 
@@ -641,17 +641,21 @@
 d in MD5
-)
+%3C/em%3E
 .%0A%09 */%0A%09
@@ -827,16 +827,35 @@
 assword(
+StringUtils.getMD5(
 password
@@ -856,15 +856,16 @@
 ssword))
+)
 ;%0A%09%7D%0A%7D%0A

Add MD5 encryption on password in MemberAuth