Subversion Repositories SmartDukaan

Rev

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

Rev 32559 Rev 32560
Line 104... Line 104...
104
			authRepository.selectByEmailOrMobile(authUser.getEmailId());
104
			authRepository.selectByEmailOrMobile(authUser.getEmailId());
105
		} catch (ProfitMandiBusinessException pbse) {
105
		} catch (ProfitMandiBusinessException pbse) {
106
			try {
106
			try {
107
				authRepository.selectByEmailOrMobile(authUser.getMobileNumber());
107
				authRepository.selectByEmailOrMobile(authUser.getMobileNumber());
108
			} catch (ProfitMandiBusinessException e) {
108
			} catch (ProfitMandiBusinessException e) {
109
				//authRepository.persist(authUser);
109
				authRepository.persist(authUser);
110
				this.resetPassword(authUser.getEmailId());
110
				this.resetPassword(authUser.getEmailId());
111
				return;
111
				return;
112
			}
112
			}
113
			throw new ProfitMandiBusinessException("Mobile", authUser.getMobileNumber(), "Mobile number already exist");
113
			throw new ProfitMandiBusinessException("Mobile", authUser.getMobileNumber(), "Mobile number already exist");
114
		}
114
		}