cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

where validate username and password

help please I want to generate an APP where validate username and password, this validated with a list of Share point I found this page but I can not get it to validate the records

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate III
Advocate III

Re: where validate username and password

I have implemented this within some of my apps already and this is how you will do it.

 

Here are my variable names first for context:

Username = The text box for the username

Password = The text box for the password

Login = The button you press to verify the username and password

LoginList = The sharepoint list containing your logins

 

Put this on the onselect properties of the login button

If(CountRows(Filter(LoginList,And(Username.Text = UsernameColumn,Password.Text = PasswordColumn))) = 1, Enter here what you want it to do if it is correct, Notify("Incorrect Login Details",NotificationType.Error))

 

Hope this helps 🙂

 

 

View solution in original post

2 REPLIES 2
Highlighted
Advocate III
Advocate III

Re: where validate username and password

I have implemented this within some of my apps already and this is how you will do it.

 

Here are my variable names first for context:

Username = The text box for the username

Password = The text box for the password

Login = The button you press to verify the username and password

LoginList = The sharepoint list containing your logins

 

Put this on the onselect properties of the login button

If(CountRows(Filter(LoginList,And(Username.Text = UsernameColumn,Password.Text = PasswordColumn))) = 1, Enter here what you want it to do if it is correct, Notify("Incorrect Login Details",NotificationType.Error))

 

Hope this helps 🙂

 

 

View solution in original post

Highlighted
Super User
Super User

Re: where validate username and password

Hi @andresadan2000 

@MatthewInwards's reply will work.

The comment I would have about this approach is that it's easy for users to circumvent the security by looking up the usernames and passwords directly in the SharePoint list. Therefore, is there a way that you can secure your app by only sharing it with the users that require access?

 

Just for info, here's a thread with a similar question.

https://powerusers.microsoft.com/t5/General-Discussion/Created-Log-In-But-cant-log-in/td-p/196312

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,739)