重置密码接口修改
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
953033b768
commit
bc3e00c8b4
|
|
@ -89,10 +89,11 @@ export function UpdateUserRole(param) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function resetPassword(userId) {
|
export function resetPassword(data) {
|
||||||
return request({
|
return request({
|
||||||
url: `/user/resetPassword/${userId}`,
|
url: `/user/resetPassword`,
|
||||||
method: 'get'
|
method: 'post',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,11 @@ export default {
|
||||||
|
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
resetPassword(this.userId).then(res => {
|
let data = {
|
||||||
|
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||||
|
UserId: this.userId
|
||||||
|
}
|
||||||
|
resetPassword(data).then(res => {
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'Reset password successfully',
|
message: 'Reset password successfully',
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<span>Security</span>
|
<span>Security</span>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div>
|
<div>
|
||||||
<el-button type="danger" @click="handleReset">{{$t('system:userlist:button:ResetPassword')}}</el-button>
|
<el-button type="danger" @click="handleReset">{{ $t('system:userlist:button:ResetPassword') }}</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -23,7 +23,11 @@ export default {
|
||||||
distinguishCancelAndClose: true,
|
distinguishCancelAndClose: true,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
resetPassword(this.userId).then(res => {
|
let data = {
|
||||||
|
BaseUrl: `${location.protocol}//${location.host}/login`,
|
||||||
|
UserId: this.userId
|
||||||
|
}
|
||||||
|
resetPassword(data).then(res => {
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
let msg = this.$t('system:userlist:message:ResetPassword2')
|
let msg = this.$t('system:userlist:message:ResetPassword2')
|
||||||
msg = msg.replace('xxx', params('userName'))
|
msg = msg.replace('xxx', params('userName'))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue