In this case, the phone number is removed from the session, the session variable verified is set to true, and then the user is redirected to the third and final route in singapore mobile number list the application at the /success url ., the verification failed and the user is redirected to the /verify route to try another code.

Below is the definition of the /success route. Copy this code to the bottom of app.py . Python copy the code @app.route('/success') def success(): if not session.get('verified'): return redirect(url_for('index')) return render_template('success.html') this route displays the success.html template when the user has been verified, or redirected to the initial page. This html template is shown below.