[{"Question":"I am making a web application using Python, ReactJS , AWS lambda.\nI want to force the user to change the password after first time login . How should i do with the backend change?\nAfter resetting the password , it should redirect to normal page .\nAny help would be greatly appreciated.","AnswerCount":1,"Available Count":1,"Score":1.2,"is_accepted":true,"ViewCount":95,"Q_Id":63212878,"Users Score":1,"Answer":"In the table where you store Users, you can create a column to check whether the User is logging in the first time or not. This can be done by the following method, when the user is created, the value for the column firstLogin(of Type Date) would be set as NULL, and when the user logs in the first time, you can use a Date function to obtain the date and insert the value there.\nSo, here is the process in brief.\n\nMake a HTTP request to create an account using fetch, axios, request or whatever module you like to create an account. Route: POST \/user, with the body containing the values or data about the User. At backend, set the SQL statement to INSERT INTO User(Firstname, Lastname, Username, Password, FirstLogin) VALUES (\"RAM\", \"KUMAR\", \"ramkumar\", \"iamaverysecurepassword\", NULL);\nNow when the User logs in for the first time using your web application, make a call to the backend, using the following route: PATCH \/user, to execute the following SQL Query UPDATE User SET FirstLogin=\"{Value of Date}\" WHERE Username=\"{Your username here(ramkumar)}\";\nNow, when you have set the Date of the first login of the user, you redirect the User on your web application using document.location.href={URL to normal page}\"\nAnd then comes the condition, that if the user has not logged in the first time, how to redirect him to the password change page? You actually execute a SQL query again, to check whether it is the first time he is logging in or not. So, basically every time an action that requires the user to have logged in before, i.e, the first time. You check whether the FirstLogin column in your SQL has the value or is NULL for the corresponding user. SELECT Firstname FROM User WHERE Username={your username here(ramkumar)}; Now check the value using if statement in your code, the value for the executed SQL Query and that FirstLogin contains a date or is null.","Q_Score":0,"Tags":"python,reactjs,aws-lambda","A_Id":63213037,"CreationDate":"2020-08-02T06:00:00.000","Title":"Force Reset Password after first time login","Data Science and Machine Learning":0,"Database and SQL":0,"GUI and Desktop Applications":0,"Networking and APIs":0,"Other":0,"Python Basics and Environment":0,"System Administration and DevOps":0,"Web Development":1},{"Question":"I have issue with scraping page and getting json from it.\n