Changeset 6221ab6 for springapp/src
- Timestamp:
- 08/20/22 21:12:04 (2 years ago)
- Branches:
- main
- Children:
- 2fcbde4
- Parents:
- 702ca77
- Location:
- springapp/src/main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
springapp/src/main/java/mk/profesori/springapp/Controller/PublicController.java
r702ca77 r6221ab6 23 23 @RestController 24 24 @RequestMapping("/public") 25 @CrossOrigin(origins = { "http://192.168.0.1 7:3000", "http://192.168.0.24:3000" })25 @CrossOrigin(origins = { "http://192.168.0.19:3000", "http://192.168.0.24:3000" }) 26 26 public class PublicController { 27 27 -
springapp/src/main/java/mk/profesori/springapp/Controller/SecureController.java
r702ca77 r6221ab6 25 25 @RestController 26 26 @RequestMapping("/secure") 27 @CrossOrigin(origins = { "http://192.168.0.1 7:3000", "http://192.168.0.24:3000" })27 @CrossOrigin(origins = { "http://192.168.0.19:3000", "http://192.168.0.24:3000" }) 28 28 public class SecureController { 29 29 -
springapp/src/main/java/mk/profesori/springapp/Security/SecurityConfiguration.java
r702ca77 r6221ab6 37 37 @Override 38 38 public void addCorsMappings(CorsRegistry registry) { 39 registry.addMapping("/**").allowedOrigins("http://192.168.0.1 7:3000", "http://192.168.0.24:3000")39 registry.addMapping("/**").allowedOrigins("http://192.168.0.19:3000", "http://192.168.0.24:3000") 40 40 .allowCredentials(true); 41 41 } -
springapp/src/main/java/mk/profesori/springapp/Service/RegistrationService.java
r702ca77 r6221ab6 45 45 String tokenToResend = customUserDetailsService 46 46 .createToken(userRepository.findByEmail(request.getEmail()).get()); 47 String link = "http://192.168.0.1 7:8080/registration/confirm?token=" + tokenToResend;47 String link = "http://192.168.0.19: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.0.1 7:8080/registration/confirm?token=" + token;68 String link = "http://192.168.0.19:8080/registration/confirm?token=" + token; 69 69 70 70 emailSender.send(request.getEmail(), emailSender.buildEmail(request.getUsername(), link)); -
springapp/src/main/resources/application.properties
r702ca77 r6221ab6 7 7 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect 8 8 spring.jpa.properties.hibernate.format_sql=true 9 server.address=192.168.0.1 79 server.address=192.168.0.19 10 10 spring.mail.host=192.168.0.24 11 11 spring.mail.username=mailuser
Note:
See TracChangeset
for help on using the changeset viewer.