Subversion Repositories SmartDukaan

Rev

Rev 37924 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37924 Rev 37991
Line 296... Line 296...
296
                    AuthUser authUser = authRepository.selectByEmailOrMobile(emailIdOrMobileNumber);
296
                    AuthUser authUser = authRepository.selectByEmailOrMobile(emailIdOrMobileNumber);
297
                    if (authUser == null) {
297
                    if (authUser == null) {
298
                        throw new ProfitMandiBusinessException("Authentication", "Email or Mobile", "Invalid Email Or Mobile");
298
                        throw new ProfitMandiBusinessException("Authentication", "Email or Mobile", "Invalid Email Or Mobile");
299
                    }
299
                    }
300
                    emailId = authUser.getEmailId();
300
                    emailId = authUser.getEmailId();
301
                    name = authUser.getFirstName() + " " + authUser.getLastName();
301
                    name = authUser.getFullName();
302
                    authUser.setLastLoginTimestamp(LocalDateTime.now());
302
                    authUser.setLastLoginTimestamp(LocalDateTime.now());
303
                } else {
303
                } else {
304
                    // TODO: Add login with email and password
304
                    // TODO: Add login with email and password
305
                    user = userService.authenticate(emailIdOrMobileNumber, password);
305
                    user = userService.authenticate(emailIdOrMobileNumber, password);
306
                    if (user != null) {
306
                    if (user != null) {