cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisM
Level: Powered On

Password Protection for PowerApps

Hey there,

Recently i have buit 2 different apps for my company and have them working fantasticly with SharePoint and Flow, however i would like more security once the App has been pinned to my home screen on my phone.

 

Is it possable to have pin on each of my PowerApps like a banking app? i really need it so that we can have our information protected from anyone that would pick up one of my staffs phones.

 

Thank you for anytime you can offer towards this.

 

Chris

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Password Protection for PowerApps

Hi @ChrisM,

 

Here are my steps to make this work:

1. Add a text-input control, name it inputPassword, and set its Mode property to Password.
2. Add a label, name it Label1 and set its Text property to this formula:

If(inputPassword.Text = "P@ssw0rd", "Access granted", "Access denied")

3. Add a Button, and set its Text property to "Sign in". Set its OnSelect property to:

If(Label1.Text="Access granted", Navigate(Screen2, ScreenTransition.Fade))

Capture.PNG

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Community Support Team
Community Support Team

Re: Password Protection for PowerApps

Hi @ChrisM,

 

If you want to lock the whole PowerApps app, I think this cannot be achieve. The only way I could think of that might be close to what you need is Prompting for a password inside each app.

 

 

    1. Add a text-input control, name it inputPassword, and set its Mode property to Password.
    2. Add a label, and set its Text property to this formula:
      If(inputPassword.Text = "P@ssw0rd", "Access granted", "Access denied")

    3. Press F5, and then type P@ssw0rd in inputPassword.

      When you finish typing the password, the label stops showing Access denied and starts to show Access granted.

    4. To return to the default workspace, press Esc.
    5.  Add a control such as an arrow, configure it to navigate to another screen, and show it only after the user types the password.

Please test to see if this could achieve your requirement.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ChrisM
Level: Powered On

Re: Password Protection for PowerApps

Hey Mona

Thanks alot for your Message regarding my question.

 

i have followed you directions and i have an error. When i completed step 2 i get a yellow triangle with "!" inside it and it is telling me "Invalid argument type".

it understands "If(inputPassword.Text =" but everything else is in red.

 

I added a button with the folloing for OnSelect "If (Password.Text= "P@ssw0rd" , Navigate(HomePage, ScreenTransition.Fade))"

which i am hoping will help when the input password is working.

 

Looking forward to hearing from you and thank you for your time.

 

Chris

Highlighted
Community Support Team
Community Support Team

Re: Password Protection for PowerApps

Hi @ChrisM,

 

Here are my steps to make this work:

1. Add a text-input control, name it inputPassword, and set its Mode property to Password.
2. Add a label, name it Label1 and set its Text property to this formula:

If(inputPassword.Text = "P@ssw0rd", "Access granted", "Access denied")

3. Add a Button, and set its Text property to "Sign in". Set its OnSelect property to:

If(Label1.Text="Access granted", Navigate(Screen2, ScreenTransition.Fade))

Capture.PNG

 

Regards,

Mona 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ChrisM
Level: Powered On

Re: Password Protection for PowerApps

Thanks so much! Works perfectly! 

 

Chris Smiley Very Happy