add(settings): password changing
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { client, lang, navigateTo } from "../../index.js";
|
||||
import { clear, fill_errors } from "../../utils/formUtils.js";
|
||||
import { clearIds, fill_errors } from "../../utils/formUtils.js";
|
||||
import AbstractNonAuthenticatedView from "../abstracts/AbstractNonAuthenticatedView.js";
|
||||
|
||||
export default class extends AbstractNonAuthenticatedView
|
||||
@ -141,7 +141,7 @@ export default class extends AbstractNonAuthenticatedView
|
||||
|
||||
let response_data = await response.json();
|
||||
|
||||
clear("innerHTML", ["username", "password", 'login']);
|
||||
clearIds("innerHTML", ["username", "password", 'login']);
|
||||
fill_errors(response_data, "innerHTML");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user