← Back to Community
HELP with code
Profile icon
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
1572117924559_78c589deff322cd65eef714d36c15d03

Voters
Profile icon
UranusWalli
Profile icon
OtiliaAllen
Profile icon
nbash
Profile icon
TobyPradeep
Profile icon
H00417147
Profile icon
AdemolaABOLARIN
Profile icon
MadihaAhmad19
Comments
hotnewtop
Profile icon
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

Profile icon
MadihaAhmad19

@PDanielY so how can I fix this issue?

Profile icon
HackermonDev
Profile icon
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]

Profile icon
HackermonDev

@MadihaAhmad19 ok, can you fix it?

Profile icon
Rileygamer21

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

Profile icon
HackermonDev

@Rileygamer21 what is it for?

Profile icon
Rileygamer21

@PDanielY Making games and coding projects