Changeset 8dffe02 for springapp


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

prefinal reproducible

Location:
springapp/src/main
Files:
5 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));
  • springapp/src/main/resources/application.properties

    r9bf1f8d r8dffe02  
    11spring.datasource.url=jdbc:postgresql://localhost:5432/profesorimk
    22spring.datasource.username=postgres
    3 spring.datasource.password=baz@228
     3spring.datasource.password=postgres
    44spring.jpa.hibernate.ddl-auto=update
    55spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
    66spring.jpa.show-sql=false
    77spring.jpa.properties.hibernate.format_sql=true
    8 server.address=192.168.1.254
    9 spring.mail.host=192.168.1.254
     8server.address=192.168.1.108
     9spring.mail.host=192.168.1.108
    1010spring.mail.username=mailuser
    1111spring.mail.password=mailpass
Note: See TracChangeset for help on using the changeset viewer.