Hi,
I have an app that needs a password screen, that when successfully logged in the user will be directed to a particular screen;
ie User A will be directed to screen 1, User B, to screen 2 and User C to screen 3.
The login screen currently has two input boxes one for user name and one for password and I've managed to get that to work with the user names and passwords stored in a sharepoint list (it's only a small list).
Currently a successful login navigates me to a generic page. How do I navigate dependant on user name?
To add an extra twist ...is it possible to replace the user name input box with a dropdown (just trying to make it a bit more idiot proof).
Current code is below where 'User Credentials' is the name of the list, Title is the name of the users Password etc.
Thanks in advance.
----------------------
If(
!IsBlank
(LookUp ('User Credentials',Title=TextInput1.Text And Password=TextPassword.Text).Title),
Navigate(StartScreen,ScreenTransition.None),
Notify(
"Invalid Password! Please enter a valid password",
NotificationType.Error
)
);
Reset(TextPassword);
Reset(TextInput1);