Ignore:
Timestamp:
01/22/23 16:51:43 (2 years ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Parents:
9bf1f8d
Message:

prefinal reproducible

Location:
springapp/src/main/java/mk/profesori/springapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • springapp/src/main/java/mk/profesori/springapp/Controller/PublicController.java

    r9bf1f8d r8dffe02  
    1313@RestController
    1414@RequestMapping("/public")
    15 @CrossOrigin(origins = { "http://192.168.1.254:3000", "http://192.168.0.28:3000" })
     15@CrossOrigin(origins = { "http://192.168.1.108:3000", "http://192.168.0.28:3000" })
    1616public class PublicController {
    1717
  • springapp/src/main/java/mk/profesori/springapp/Controller/SecureController.java

    r9bf1f8d r8dffe02  
    2222@RestController
    2323@RequestMapping("/secure")
    24 @CrossOrigin(origins = { "http://192.168.1.254:3000", "http://192.168.0.28:3000" })
     24@CrossOrigin(origins = { "http://192.168.1.108:3000", "http://192.168.0.28:3000" })
    2525public class SecureController {
    2626
  • springapp/src/main/java/mk/profesori/springapp/Security/SecurityConfiguration.java

    r9bf1f8d r8dffe02  
    3737            @Override
    3838            public void addCorsMappings(CorsRegistry registry) {
    39                 registry.addMapping("/**").allowedOrigins("http://192.168.1.254:3000", "http://192.168.0.28:3000")
     39                registry.addMapping("/**").allowedOrigins("http://192.168.1.108:3000", "http://192.168.0.28:3000")
    4040                        .allowCredentials(true);
    4141            }
  • springapp/src/main/java/mk/profesori/springapp/Service/RegistrationService.java

    r9bf1f8d r8dffe02  
    4545                String tokenToResend = customUserDetailsService
    4646                        .createToken(userRepository.findByEmail(request.getEmail()).get());
    47                 String link = "http://192.168.1.254:8080/registration/confirm?token=" + tokenToResend;
     47                String link = "http://192.168.1.108:8080/registration/confirm?token=" + tokenToResend;
    4848                emailSender.send(request.getEmail(), emailSender.buildEmail(request.getUsername(), link));
    4949                return tokenToResend;
     
    6666                        UserRole.REGULAR));
    6767
    68         String link = "http://192.168.1.254:8080/registration/confirm?token=" + token;
     68        String link = "http://192.168.1.108:8080/registration/confirm?token=" + token;
    6969
    7070        emailSender.send(request.getEmail(), emailSender.buildEmail(request.getUsername(), link));
Note: See TracChangeset for help on using the changeset viewer.