mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-14 13:08:27 +03:00
fix show password button in sudo pages
This commit is contained in:
parent
02b62fb1d0
commit
00acf0c193
3 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,7 @@ import FORM from '../../../auth/sudo/';
|
|||
import getFormUrl from '../../../utils/getFormUrl';
|
||||
import genJsonPayload from '../../../utils/genJsonPayload';
|
||||
import createError from '../../../components/error';
|
||||
import registerShowPassword from '../../../components/showPassword';
|
||||
|
||||
import VIEWS from '../../../views/v1/routes';
|
||||
|
||||
|
@ -45,4 +46,5 @@ const submit = async (e: Event) => {
|
|||
|
||||
export const index = () => {
|
||||
FORM.get().addEventListener('submit', submit, true);
|
||||
registerShowPassword();
|
||||
};
|
||||
|
|
|
@ -21,6 +21,7 @@ import FORM from '../../../auth/sudo/';
|
|||
import getFormUrl from '../../../utils/getFormUrl';
|
||||
import genJsonPayload from '../../../utils/genJsonPayload';
|
||||
import createError from '../../../components/error';
|
||||
import registerShowPassword from '../../../components/showPassword';
|
||||
|
||||
import VIEWS from '../../../views/v1/routes';
|
||||
|
||||
|
@ -45,4 +46,5 @@ const submit = async (e: Event) => {
|
|||
|
||||
export const index = () => {
|
||||
FORM.get().addEventListener('submit', submit, true);
|
||||
registerShowPassword();
|
||||
};
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
import {getPassword} from '../../../auth/login/ts/';
|
||||
import FORM from '../../../auth/sudo/';
|
||||
import additionalData from '../../../components/additional-data';
|
||||
import registerShowPassword from '../../../components/showPassword';
|
||||
|
||||
import getFormUrl from '../../../utils/getFormUrl';
|
||||
import genJsonPayload from '../../../utils/genJsonPayload';
|
||||
|
@ -48,4 +49,5 @@ const submit = async (e: Event) => {
|
|||
|
||||
export const index = () => {
|
||||
FORM.get().addEventListener('submit', submit, true);
|
||||
registerShowPassword();
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue