mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-14 03:25:40 +00:00
show password component
This commit is contained in:
@@ -36,7 +36,8 @@
|
||||
id="password"
|
||||
required
|
||||
/>
|
||||
</label>
|
||||
<. include!("../../components/showPassword/index.html"); .>
|
||||
</label>
|
||||
|
||||
<input type="submit" class="sitekey-form__submit" value="Sign in" />
|
||||
</form>
|
||||
|
||||
@@ -20,6 +20,7 @@ import VIEWS from '../../../views/v1/routes';
|
||||
import isBlankString from '../../../utils/isBlankString';
|
||||
import genJsonPayload from '../../../utils/genJsonPayload';
|
||||
import getFormUrl from '../../../utils/getFormUrl';
|
||||
import registerShowPassword from '../../../components/showPassword';
|
||||
|
||||
//import '../forms.scss';
|
||||
|
||||
@@ -62,4 +63,5 @@ const login = async (e: Event) => {
|
||||
export const index = () => {
|
||||
const form = <HTMLFontElement>document.getElementById('form');
|
||||
form.addEventListener('submit', login, true);
|
||||
registerShowPassword();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user