Subversion Repositories SmartDukaan

Rev

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

Rev 22931 Rev 23204
Line 59... Line 59...
59
			otpResponse = new OTPResponse();
59
			otpResponse = new OTPResponse();
60
			otpResponse.setMessage("Illegal mobile number");
60
			otpResponse.setMessage("Illegal mobile number");
61
			return responseSender.badRequest(otpResponse);
61
			return responseSender.badRequest(otpResponse);
62
		}
62
		}
63
		
63
		
64
		if (userRepositoty.isExistByEmailId(email) || userRepositoty.isExistByMobileNumber(phone)){
64
		if (userRepositoty.isExistByEmailId(email) || userRepositoty.isExistByMobileNumber(phone) || userRepositoty.isExistBySecondryEmailId(email)){
65
			otpResponse = new OTPResponse();
65
			otpResponse = new OTPResponse();
66
			otpResponse.setMessage("User with email or mobile already exists");
66
			otpResponse.setMessage("User with email or mobile already exists");
67
			return responseSender.badRequest(otpResponse);
67
			return responseSender.badRequest(otpResponse);
68
		}
68
		}
69
		
69