cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fletch6
Frequent Visitor

Login Screen link Power App link to SQL

 

Hi,

 

I am trying to create a log in page where a user enters their username and then a password. I would like the app to recognise the username from a table in SQL and then the password they enter is also in that table in another column with their password on. The function needs to use their username and match to the password in the SQL column relating to that username. 

 

I can't find anything on this specifically so any help would be appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi   @fletch6 

  • Create sql connection to that environment
  • Here is the code on button click

 

 

If(
    !IsEmpty(
        Filter(
            Student,
               UserName=UsernameInput.Text,
               Paswword=PwdInput.Text
        )
    ),
    Navigate(Screen2),
    Notify("Credentials  not matching")
)

 

 

Working Sample

StalinPonnusamy_0-1628783152466.png

 

View solution in original post

2 REPLIES 2
StalinPonnusamy
Super User
Super User

Hi   @fletch6 

  • Create sql connection to that environment
  • Here is the code on button click

 

 

If(
    !IsEmpty(
        Filter(
            Student,
               UserName=UsernameInput.Text,
               Paswword=PwdInput.Text
        )
    ),
    Navigate(Screen2),
    Notify("Credentials  not matching")
)

 

 

Working Sample

StalinPonnusamy_0-1628783152466.png

 

Thank you so much 🙂 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,815)