I have a requirement to validate the credentials in the login page for the data in one the DE that I have for the client.

I have created a login page in cloud pages/ landing pages ( salesforce marketing cloud).

I have email IDs as username, and their respective passwords stored in a Data Extension.

when user tries to login from login page, the credentials needs to be validated and then allow the user to the home page if the credentials are correct.

Let me know how the above task could be achieved.

1 Answer 1


Of course possible.

  • You could use LookupRows to check the username entered by the user in the login page with the Data extension data.
  • Then you can use Redirect to redirect the user to next screens.
  • You can use UpdateData to update the data extensions with the information the users enter in the pages.

Make sure the password is encrypted/encoded while storing in the data extension.

  • Thanks for the quick and prompt reply. I shall try it the way you explained and will get back to you.
    – Abhi Saran
    Commented Dec 4, 2018 at 8:51
  • 2
    You should also have validation on the pages beyond the login so a user can't just bookmark the page and skip the validation. This can be accomplished by using conditionals and either cookies or a parameter that can expire. I usually have a second DE that has a retention period on it that contains user | key. The key is a random GUID() created after login that is then passed to the subsequent pages - but after X time, it expires, requiring the user to relog. I then have conditionals on the pages to lookup against this DE to verify the key. Commented Dec 4, 2018 at 13:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .