mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
remember me checkbox login form
This commit is contained in:
@@ -41,7 +41,11 @@ class LoginPageElement extends BasePageElement {
|
||||
const formObject: any = {};
|
||||
this.inputs.forEach((input: InputFieldElement) => {
|
||||
const inputType = input.inp;
|
||||
formObject[input.name] = (inputType as HTMLInputElement).value;
|
||||
if (input.type === 'checkbox') {
|
||||
formObject[input.name] = (inputType as HTMLInputElement).checked;
|
||||
} else {
|
||||
formObject[input.name] = (inputType as HTMLInputElement).value;
|
||||
}
|
||||
});
|
||||
return formObject;
|
||||
}
|
||||
@@ -93,6 +97,14 @@ class LoginPageElement extends BasePageElement {
|
||||
data-targets="login-page.inputs"
|
||||
data-rules="required"
|
||||
>
|
||||
</input-field>
|
||||
<input-field
|
||||
data-type="checkbox"
|
||||
data-name="rememberMe"
|
||||
data-label="Remember me"
|
||||
data-targets="login-page.inputs"
|
||||
data-rules=""
|
||||
>
|
||||
</input-field>`;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user