Changeset 8dffe02 for springapp/src/main/java
- Timestamp:
- 01/22/23 16:51:43 (2 years ago)
- Branches:
- main
- Parents:
- 9bf1f8d
- 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 13 13 @RestController 14 14 @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" }) 16 16 public class PublicController { 17 17 -
springapp/src/main/java/mk/profesori/springapp/Controller/SecureController.java
r9bf1f8d r8dffe02 22 22 @RestController 23 23 @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" }) 25 25 public class SecureController { 26 26 -
springapp/src/main/java/mk/profesori/springapp/Security/SecurityConfiguration.java
r9bf1f8d r8dffe02 37 37 @Override 38 38 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") 40 40 .allowCredentials(true); 41 41 } -
springapp/src/main/java/mk/profesori/springapp/Service/RegistrationService.java
r9bf1f8d r8dffe02 45 45 String tokenToResend = customUserDetailsService 46 46 .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; 48 48 emailSender.send(request.getEmail(), emailSender.buildEmail(request.getUsername(), link)); 49 49 return tokenToResend; … … 66 66 UserRole.REGULAR)); 67 67 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; 69 69 70 70 emailSender.send(request.getEmail(), emailSender.buildEmail(request.getUsername(), link));
Note:
See TracChangeset
for help on using the changeset viewer.