mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
delete captcha option and sudo page
This commit is contained in:
@@ -25,6 +25,16 @@ import createError from '../../../components/error/index';
|
||||
|
||||
//import '../forms.scss';
|
||||
|
||||
export const getPassword = () => {
|
||||
const passwordElement = <HTMLInputElement>document.getElementById('password');
|
||||
if (passwordElement === null) {
|
||||
console.debug('Password is null');
|
||||
return;
|
||||
}
|
||||
|
||||
return passwordElement.value;
|
||||
};
|
||||
|
||||
const login = async (e: Event) => {
|
||||
e.preventDefault();
|
||||
const loginElement = <HTMLInputElement>document.getElementById('login');
|
||||
@@ -36,13 +46,7 @@ const login = async (e: Event) => {
|
||||
const login = loginElement.value;
|
||||
isBlankString(login, 'username', e);
|
||||
|
||||
const passwordElement = <HTMLInputElement>document.getElementById('password');
|
||||
if (passwordElement === null) {
|
||||
console.debug('Password is null');
|
||||
return;
|
||||
}
|
||||
|
||||
const password = passwordElement.value;
|
||||
const password = getPassword();
|
||||
|
||||
const payload = {
|
||||
login,
|
||||
|
||||
Reference in New Issue
Block a user