Subversion Repositories SmartDukaan

Rev

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

Rev 32570 Rev 32571
Line 252... Line 252...
252
        String emailId = null;
252
        String emailId = null;
253
        String name = null;
253
        String name = null;
254
        try {
254
        try {
255
            // if role is retailer then FOFO_ID is retailerId else it is userid as normal
255
            // if role is retailer then FOFO_ID is retailerId else it is userid as normal
256
            // user's wont have retailer id.
256
            // user's wont have retailer id.
257
            if (StringUtils.isNotEmpty(token)) {
257
            if (StringUtils.isEmpty(token)) {
258
                if (authService.authenticate(emailIdOrMobileNumber, password)) {
258
                if (authService.authenticate(emailIdOrMobileNumber, password)) {
259
                    AuthUser authUser = authRepository.selectByEmailOrMobile(emailIdOrMobileNumber);
259
                    AuthUser authUser = authRepository.selectByEmailOrMobile(emailIdOrMobileNumber);
260
                    if (authUser == null) {
260
                    if (authUser == null) {
261
                        throw new ProfitMandiBusinessException("Authentication", "Email or Mobile",
261
                        throw new ProfitMandiBusinessException("Authentication", "Email or Mobile",
262
                                "Invalid Email Or Mobile");
262
                                "Invalid Email Or Mobile");