mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-31 04:33:58 +02:00
refactor
This commit is contained in:
@@ -80,14 +80,14 @@ async function change() {
|
||||
type: 'password',
|
||||
autocomplete: 'new-password',
|
||||
});
|
||||
if (canceled2) return;
|
||||
if (canceled2 || newPassword == null) return;
|
||||
|
||||
const { canceled: canceled3, result: newPassword2 } = await os.inputText({
|
||||
title: i18n.ts.newPasswordRetype,
|
||||
type: 'password',
|
||||
autocomplete: 'new-password',
|
||||
});
|
||||
if (canceled3) return;
|
||||
if (canceled3 || newPassword2 == null) return;
|
||||
|
||||
if (newPassword !== newPassword2) {
|
||||
os.alert({
|
||||
|
||||
Reference in New Issue
Block a user