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

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,296)