i have created and stored the user registration details into the database.Now I have to validate those stored credentials with the credentials that user enters during the login process.Could any one help me like validating the details ?
Discussion posts and replies are publicly visible
Hi RithikaHere you're trying to validate even before users login to Appian if I understood correctly. However, if users enter wrong credential Appian itself will handle thisWhy would we need to validate it on the login page? I just wanted to know what is the business here?Thanks
Hi Rithika,
Actually I have created a registration page and storing the values of the registered users in database .Now I have created a login page also.Now my problem is I have username and password fields in login page when entered values in those fields , the values should get compared with those in registered database table.If entered values are equal to values in database they should login otherwise throw an error.
So the registration page is not an Appian default login page, right?
Yes I have created seperate login and registration pages
Thanks. But I am not sure abt other platforms.But concept-wise, whichever domain, you have used to create the page, you need to interact with respected DB and get the credentials from DB for that user in a variable and what user enters on the page in other variables and just compare.it.Please let me know if you need any other help from the Appian side.
Actually I have created a user management app in appian in that I have created registration and login page interface and trying to validate them
Got you.Here is the way you can follow.
1. Get username of logged in username by function loggedInuser() and store in one local variable.2. Use above local to query from DB via a query entity which takes input as username and query a row from DB and store it into another local variable3. Now the field where the user enters credentials is getting saved/store into other variables.4. So in the validation part of the field of "Username" and "Password", you can compare.5. if it matches then no msg to display else say username/password is wrongOr instead of validating at the field level, you can do validation at form label as well when a user hit on submit buttonLet me know if you are unclear anywhere
Thanks Dhananjay I will try this thing and reply you back once it is done
Hey were you able to achieve what you were expecting?
Yes Thank you I was successful in getting that data.
Can you share a sample expression for the login interface
What do you want to achieve?
To get any access to Appian you already have to log in. There is nothing like a "custom login page" in Appian.
I am creating own custom login page interface and trying to validate them