Changeset 8dffe02 for springapp/src/main
- Timestamp:
- 01/22/23 16:51:43 (22 months ago)
- Branches:
- main
- Parents:
- 9bf1f8d
- Location:
- springapp/src/main
- Files:
-
- 5 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)); -
springapp/src/main/resources/application.properties
r9bf1f8d r8dffe02 1 1 spring.datasource.url=jdbc:postgresql://localhost:5432/profesorimk 2 2 spring.datasource.username=postgres 3 spring.datasource.password= baz@2283 spring.datasource.password=postgres 4 4 spring.jpa.hibernate.ddl-auto=update 5 5 spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect 6 6 spring.jpa.show-sql=false 7 7 spring.jpa.properties.hibernate.format_sql=true 8 server.address=192.168.1. 2549 spring.mail.host=192.168.1. 2548 server.address=192.168.1.108 9 spring.mail.host=192.168.1.108 10 10 spring.mail.username=mailuser 11 11 spring.mail.password=mailpass
Note:
See TracChangeset
for help on using the changeset viewer.