forked from mirror/misskey
parent
57cac0aa23
commit
4215a11d9a
@ -969,6 +969,7 @@ cannotBeChangedLater: "後から変更できません。"
|
|||||||
reactionAcceptance: "リアクションの受け入れ"
|
reactionAcceptance: "リアクションの受け入れ"
|
||||||
likeOnly: "いいねのみ"
|
likeOnly: "いいねのみ"
|
||||||
likeOnlyForRemote: "リモートからはいいねのみ"
|
likeOnlyForRemote: "リモートからはいいねのみ"
|
||||||
|
resetPasswordConfirm: "パスワードリセットしますか?"
|
||||||
|
|
||||||
_achievements:
|
_achievements:
|
||||||
earnedAt: "獲得日時"
|
earnedAt: "獲得日時"
|
||||||
|
@ -262,14 +262,21 @@ async function updateRemoteUser() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function resetPassword() {
|
async function resetPassword() {
|
||||||
const { password } = await os.api('admin/reset-password', {
|
const confirm = await os.confirm({
|
||||||
userId: user.id,
|
type: 'warning',
|
||||||
});
|
text: i18n.ts.resetPasswordConfirm,
|
||||||
|
|
||||||
os.alert({
|
|
||||||
type: 'success',
|
|
||||||
text: i18n.t('newPasswordIs', { password }),
|
|
||||||
});
|
});
|
||||||
|
if (confirm.canceled) {
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
const { password } = await os.api('admin/reset-password', {
|
||||||
|
userId: user.id,
|
||||||
|
});
|
||||||
|
os.alert({
|
||||||
|
type: 'success',
|
||||||
|
text: i18n.t('newPasswordIs', { password }),
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function toggleSuspend(v) {
|
async function toggleSuspend(v) {
|
||||||
|
Loading…
Reference in New Issue
Block a user