管理员重置账号密码后,用户登录后重新设置密码的页面存在问题
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
105bd48201
commit
92bc105281
|
|
@ -121,7 +121,7 @@ const actions = {
|
||||||
localStorage.setItem('CompanyInfo', JSON.stringify(response.Result.CompanyInfo))
|
localStorage.setItem('CompanyInfo', JSON.stringify(response.Result.CompanyInfo))
|
||||||
const data = response.Result
|
const data = response.Result
|
||||||
commit('SET_ROLES', data.BasicInfo.AccountList)
|
commit('SET_ROLES', data.BasicInfo.AccountList)
|
||||||
if (data.BasicInfo.IsFirstAdd || data.BasicInfo.LoginState === 1) {
|
if (data.BasicInfo.IsFirstAdd || data.BasicInfo.LoginState === 1 || data.BasicInfo.IsNeedResetPwd) {
|
||||||
try {
|
try {
|
||||||
zzSessionStorage.setItem('userId', data.BasicInfo.Id)
|
zzSessionStorage.setItem('userId', data.BasicInfo.Id)
|
||||||
commit('SET_TOKEN', data.JWTStr)
|
commit('SET_TOKEN', data.JWTStr)
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
<!-- {{ $t('login:title:system_title_about') }} -->
|
<!-- {{ $t('login:title:system_title_about') }} -->
|
||||||
<img src="@/assets/system.png" alt=""
|
<img src="@/assets/system.png" alt=""
|
||||||
:style="{ width: isEN ? '180px' : '200px', height: isEN ? '60px' : '65px' }" />
|
:style="{ width: isEN ? '180px' : '200px', height: isEN ? '60px' : '65px' }" />
|
||||||
<p style="margin-bottom: 0px">{{ $t('login:title:system') }}</p>
|
<p style="margin-bottom: 0px">{{ $t('login:title:system') }}</p>
|
||||||
</div>
|
</div>
|
||||||
<p style="margin-bottom: 20px; margin-top: 0">
|
<p style="margin-bottom: 20px; margin-top: 0">
|
||||||
V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }}
|
V{{ $version.IsEnv_US ? $version.Version_US : $version.Version }}
|
||||||
|
|
@ -374,6 +374,15 @@ export default {
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 500)
|
||||||
return
|
return
|
||||||
|
} else if (res.BasicInfo.IsNeedResetPwd) {
|
||||||
|
// 当前用户管理员重置密码,请先修改密码之后再次登录
|
||||||
|
this.$message.success(this.$t('login:message:login5'))
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$router.push({
|
||||||
|
path: `/user-recompose?UserId=${res.BasicInfo.IdentityUserId}&Email=${res.BasicInfo.EMail}&UserName=${res.BasicInfo.UserName}&lang=${this.$i18n.locale}&access_token=${res.JWTStr}&isUpdate=1`,
|
||||||
|
})
|
||||||
|
}, 500)
|
||||||
|
return
|
||||||
} else if (res.BasicInfo.NeedChangePassWord) {
|
} else if (res.BasicInfo.NeedChangePassWord) {
|
||||||
// 请先修改密码后再登录!
|
// 请先修改密码后再登录!
|
||||||
this.$alert(
|
this.$alert(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue