添加修改密码失败的提示
This commit is contained in:
parent
da029c36cf
commit
f5e78ff928
@ -95,7 +95,7 @@ public class MediaServiceImpl implements IMediaService {
|
|||||||
streamInfoResult.setHttps_ts(String.format("https://%s:%s/%s/%s.live.ts", addr, mediaInfo.getHttpSSlPort(), app, stream));
|
streamInfoResult.setHttps_ts(String.format("https://%s:%s/%s/%s.live.ts", addr, mediaInfo.getHttpSSlPort(), app, stream));
|
||||||
streamInfoResult.setWss_ts(String.format("wss://%s:%s/%s/%s.live.ts", addr, mediaInfo.getHttpSSlPort(), app, stream));
|
streamInfoResult.setWss_ts(String.format("wss://%s:%s/%s/%s.live.ts", addr, mediaInfo.getHttpSSlPort(), app, stream));
|
||||||
streamInfoResult.setWss_ts(String.format("wss://%s:%s/%s/%s.live.ts", addr, mediaInfo.getHttpSSlPort(), app, stream));
|
streamInfoResult.setWss_ts(String.format("wss://%s:%s/%s/%s.live.ts", addr, mediaInfo.getHttpSSlPort(), app, stream));
|
||||||
streamInfoResult.setRtc(String.format("http://%s:%s/index/api/webrtc?app=%s&stream=%s&type=play", mediaInfo.getStreamIp(), mediaInfo.getHttpSSlPort(), app, stream));
|
streamInfoResult.setRtc(String.format("https://%s:%s/index/api/webrtc?app=%s&stream=%s&type=play", mediaInfo.getStreamIp(), mediaInfo.getHttpSSlPort(), app, stream));
|
||||||
}
|
}
|
||||||
|
|
||||||
streamInfoResult.setTracks(tracks);
|
streamInfoResult.setTracks(tracks);
|
||||||
|
@ -76,7 +76,11 @@ public class UserController {
|
|||||||
@PostMapping("/changePassword")
|
@PostMapping("/changePassword")
|
||||||
public String changePassword(@RequestParam String oldPassword, @RequestParam String password){
|
public String changePassword(@RequestParam String oldPassword, @RequestParam String password){
|
||||||
// 获取当前登录用户id
|
// 获取当前登录用户id
|
||||||
String username = SecurityUtils.getUserInfo().getUsername();
|
LoginUser userInfo = SecurityUtils.getUserInfo();
|
||||||
|
if (userInfo== null) {
|
||||||
|
return "fail";
|
||||||
|
}
|
||||||
|
String username = userInfo.getUsername();
|
||||||
LoginUser user = null;
|
LoginUser user = null;
|
||||||
try {
|
try {
|
||||||
user = SecurityUtils.login(username, oldPassword, authenticationManager);
|
user = SecurityUtils.login(username, oldPassword, authenticationManager);
|
||||||
|
@ -106,6 +106,12 @@ export default {
|
|||||||
this.$router.push('/login');
|
this.$router.push('/login');
|
||||||
this.sseSource.close();
|
this.sseSource.close();
|
||||||
},800)
|
},800)
|
||||||
|
}else {
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: '修改密码失败,是否已登录(接口鉴权关闭无法修改密码)',
|
||||||
|
type: 'error'
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}).catch((error)=> {
|
}).catch((error)=> {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user