Subversion Repositories SmartDukaan

Rev

Rev 20202 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20202 Rev 20205
Line 77... Line 77...
77
    	String email, password;
77
    	String email, password;
78
    	boolean isValid = true;
78
    	boolean isValid = true;
79
    	JSONObject json = new JSONObject();
79
    	JSONObject json = new JSONObject();
80
    	String errorMessage = "{\"status\":\"error\",\"message\":\"Some Problem occurred. Please try again.\"}";
80
    	String errorMessage = "{\"status\":\"error\",\"message\":\"Some Problem occurred. Please try again.\"}";
81
    	email = this.request.getParameter("email"); 
81
    	email = this.request.getParameter("email"); 
82
    	password = this.request.getParameter("txtPassword");
82
    	password = this.request.getParameter("password");
83
    	try{
83
    	try{
84
    	if(!Utils.isValidEmail(email))	{
84
    	if(!Utils.isValidEmail(email))	{
85
    		addActionError("Please enter valid email address.");
85
    		addActionError("Please enter valid email address.");
86
    		json.put("message", "Please enter valid email address.");
86
    		json.put("message", "Please enter valid email address.");
87
    		json.put("status", "error");
87
    		json.put("status", "error");