feat: cors
This commit is contained in:
parent
16fd51641a
commit
32d2592841
@ -0,0 +1,8 @@
|
|||||||
|
package com.edufocus.edufocus.user.model.entity;
|
||||||
|
|
||||||
|
public class InfoDto {
|
||||||
|
|
||||||
|
String name;
|
||||||
|
String email;
|
||||||
|
|
||||||
|
}
|
@ -12,4 +12,7 @@ public interface UserService {
|
|||||||
void sendEamail(User user) throws Exception;
|
void sendEamail(User user) throws Exception;
|
||||||
void userCheck(Long id) throws Exception;
|
void userCheck(Long id) throws Exception;
|
||||||
String getUserName(Long id) throws Exception;
|
String getUserName(Long id) throws Exception;
|
||||||
|
void changeuInfo(Long id) throws Exception;
|
||||||
|
void changePassword(Long id) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -143,6 +143,16 @@ public class UserServiceImpl implements UserService{
|
|||||||
return userRepository.findById(id).get().getName();
|
return userRepository.findById(id).get().getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void changeuInfo(Long id) throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void changePassword(Long id) throws Exception {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public String getTempPassword() {
|
public String getTempPassword() {
|
||||||
char[] charSet = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
|
char[] charSet = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
|
||||||
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
|
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
|
||||||
|
@ -21,11 +21,12 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
|
|
||||||
import livekit.LivekitWebhook.WebhookEvent;
|
import livekit.LivekitWebhook.WebhookEvent;
|
||||||
|
|
||||||
//@CrossOrigin(origins = "*")
|
@CrossOrigin(origins = "*")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/video")
|
@RequestMapping("/video")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
|
||||||
public class Controller {
|
public class Controller {
|
||||||
private final JWTUtil jwtUtil;
|
private final JWTUtil jwtUtil;
|
||||||
private final UserService userService;
|
private final UserService userService;
|
||||||
|
Loading…
Reference in New Issue
Block a user