Ask coding questions

← Back to all posts
HELP with code
MadihaAhmad19

Here I have done the secure page activity using the flask package.
Please can you have a look at my code and see where I've gone wrong because even if the console/terminal section displays the message/title 'Hello, Repler!', it doesn't ask for the password in the URL according to the video in this link: https://repl.it/site/docs/misc/quick-start#creating-a-new-python-3-repl

Voters
nbash
TobyPradeep
H00417147
AdemolaABOLARIN
MadihaAhmad19
Comments
hotnewtop
HackermonDev

It doesn't do that because if Flask can't find the arg secret it will make it undefined so it is comparing undefined and the password in the .env file

MadihaAhmad19

@PDanielY so how can I fix this issue?

HackermonDev
MadihaAhmad19

although I've used your advice --> there is a slight issue here: my link is https://flask-repl-replit-madihaahmad19.madihaahmad19.repl.co however, the link you have sent when the console presumably runs is something different =[https://Flask-repl-Replit-MadihaAhmad19.madihaahmad19.repl.co/secure-page ].. I think the problem is that the secure page function that was written is not [email protected]

HackermonDev

@MadihaAhmad19 ok, can you fix it?

Rileygamer21

@PDanielY would any of you like to join my repl multiplayer group thing?

HackermonDev

@Rileygamer21 what is it for?

Rileygamer21

@PDanielY Making games and coding projects