Subversion Repositories SmartDukaan

Rev

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

Rev 26025 Rev 26026
Line 236... Line 236...
236
					AuthUser authUser = authRepository.selectByEmailOrMobile(emailIdOrMobileNumber);
236
					AuthUser authUser = authRepository.selectByEmailOrMobile(emailIdOrMobileNumber);
237
					if (authUser == null) {
237
					if (authUser == null) {
238
						throw new ProfitMandiBusinessException("Authentication", "Email or Mobile",
238
						throw new ProfitMandiBusinessException("Authentication", "Email or Mobile",
239
								"Invalid Email Or Mobile");
239
								"Invalid Email Or Mobile");
240
					}
240
					}
-
 
241
					emailId = authUser.getEmailId();
241
					name = authUser.getFirstName() + " " + authUser.getLastName();
242
					name = authUser.getFirstName() + " " + authUser.getLastName();
242
					authUser.setLastLoginTimestamp(LocalDateTime.now());
243
					authUser.setLastLoginTimestamp(LocalDateTime.now());
243
					authRepository.persist(authUser);
244
					authRepository.persist(authUser);
244
				}
245
				}
245
 
246