mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01:00
parent
57cac0aa23
commit
4215a11d9a
2 changed files with 15 additions and 7 deletions
|
@ -969,6 +969,7 @@ cannotBeChangedLater: "後から変更できません。"
|
|||
reactionAcceptance: "リアクションの受け入れ"
|
||||
likeOnly: "いいねのみ"
|
||||
likeOnlyForRemote: "リモートからはいいねのみ"
|
||||
resetPasswordConfirm: "パスワードリセットしますか?"
|
||||
|
||||
_achievements:
|
||||
earnedAt: "獲得日時"
|
||||
|
|
|
@ -262,15 +262,22 @@ async function updateRemoteUser() {
|
|||
}
|
||||
|
||||
async function resetPassword() {
|
||||
const confirm = await os.confirm({
|
||||
type: 'warning',
|
||||
text: i18n.ts.resetPasswordConfirm,
|
||||
});
|
||||
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) {
|
||||
const confirm = await os.confirm({
|
||||
|
|
Loading…
Reference in a new issue