Login form in VBCS
Summary
Login form in VBCSContent
Hi, i'm looking to create an login page in vbcs. I've business object that has username and password stored. Now in my login page i have two fields username and password and login button. In button action i have entered js code in which username and password are hardcoded.
("if($SampletableEntityDetailArchetypeRecord.getValue('username')=='cloud.admin'
&& $SampletableEntityDetailArchetypeRecord.getValue('password')=='cloud')
{
resolve($SampletableEntityDetailArchetypeRecord);
}
else{
reject("Error");
}"
)
In this code now i want username and password to be derived from my business objects(username and password). if that matches it should navigate to other page.
How do i achieve this??
1