tvOS Login screen Done button callback - authentication

tvOS provides a very simple and basic way to login user. Just put some text fields like email and password field and when you press on that I will open a new screen where you can enter first email then press Continue and then you enter the password and then there is a Done button.
I am facing a hard time in figuring out that when done is pressed how can I get the callback for that. So that I start authenticating the user credentials.

Related

Forgot password in Firebase Authentication (better UI/UX)

I am developing a mobile app which uses Firebase Authentication. When the user forgets his/her password, I am following these steps:
1- User is asked to enter his/her email.
2- User is forwarded to the attached screen (see image).
3- User receives an email with a link.
4- User clicks on the link in the email inside his device.
5- User is taking to another screen (in the mobile) to enter new password.
The problem I am faced with is that what if the user performs step # 4 but on his desktop.
Meaning that the user goes to his desktop and clicks on the link inside the email. In this case, the rest of the steps will resume from the desktop and the mobile app does not know if the user has changed his password. So the mobile app will remain at the attached screen. What should I do to move the user to the sign in screen.
Obviously, I can add a third button which I can call "Continue" or "Resume" which when clicked will take the user to sign in. But that has couple problems:
1- I will need to add a third button to the screen which is not super clean.
2- When the user clicks on the "Continue" or "Resume" button, there is no guarantee that the user has changed his/her password in the first place. So there is no point of clicking the button in the first place.
One other solution would be to not allow the user to change password from the desktop by providing instructions to the user to go back to the mobile device and click on the link in the email over there.
Can some one suggest a nice way to handle this situation.

how to secure html page with simple javascript code?

I need a simple javascript code that I'll put inside the html page and do the following:
When a user enters the page, a popup appears that asks to enter a password.
If the correct password is entered, the user will see the window content.
If the wrong password is inserted, the popup will say: "wrong password, try again"
And if a user hit the "cancel" button,
it will do nothing, and the page will stay blank without content until the user hits the refresh button or the back button to the previous page and will try to enter the "secure" page again,
It doesn't need to be complicated or too secured.
The content of the page that I want to secure is not sensitive.
thanks.

How to prevent navigating back on button click in React native?

I want to achieve the following things.
Enter username and password and log in on button click.
Validate the above things.
Navigate to a new screen and print the input values username and password in new screen.
A logout button and on click navigate back to the login page.
Prevent login again just by clicking the button in the login page without inputting username and password.
I have completed the first 4 things but I don't know how to implement the last functionality in React native.
If I understood correctly the question and honestly I'm really not certain, then resetting the navigation stack after logging out is the solution you are looking for, you can find it here: https://reactnavigation.org/docs/en/stack-actions.html#reset

Blue Prism - text box login and password entered but website says please enter user name and password

I am just started learning BP - I have spied the the login text box like user name and password;
when I run the application it enters the user name and password that I have specified in the data items correctly and then click on LOGIN button; but website throws that
-please enter username
- please enter password
So, I feel that website didnt really recognize the text that BP entered in both fields thus it thrwos the error; any idea what else can be done here?
I have a wait stage as well
1. Launch website
2. Wait
3. Write stage to username & pwd
4. wait stage
5. click on LOGIN button.
on step#3 I tried before that focus/centre click or double as well before writing the text into the textbox but none worked.

cocoa login window navigation using button click

I am doing code in cocoa with objective c. I have made login window with username and password. I want to show another window using button click on login form. So user first input username and password and then click on submit button it will close this window and open new window with passing this username and password to that new window.
Kindly suggest how to do code ?
Thanks