546
Views
10
Comments
Solved
Login Page Check User From Database

Hi there,  

I have a table user which columns Name and Password and in login screen i  want to check if name and password match values in table.. if succees i can go to other screen, otherwise stay in the login page. How to achieve that? tq

Rank: #1225
Solution

Hi Indra,

I have attached oml file(Login_Example), I have created a entity "UserCredentials", it has a record with 

Name :- admin 

Password :- admin

You can also add your own records to check.

Please let me know if you find any difficulties.

Regards,

Swaroop

Login_Example.oml

Rank: #1225

Hi Indra,

Are you using "User" table from System Espace or you have added a Entity "User" in your application?

Regards,

Swaroop

Rank: #1225

Hi Indra,

1.You can create a blank page(example Homepage)

2.Add a "preparation" action to that you can check for correct Username and Password, if its matching redirect to the correct page

3. If its wrong you can end the preparation action to stay on the page.

Please let me know if you find any difficulties.

Regards,

Swaroop Mutalik


Rank: #1225
Solution

Hi Indra,

I have attached oml file(Login_Example), I have created a entity "UserCredentials", it has a record with 

Name :- admin 

Password :- admin

You can also add your own records to check.

Please let me know if you find any difficulties.

Regards,

Swaroop

Login_Example.oml

Rank: #2299

thanks FOr this post