<s> from flask import Flask , request , render_template , flash , redirect , url_for <EOL> app = Flask ( __name__ ) <EOL> app . secret_key = '<STR_LIT>' <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def login ( ) : <EOL> return render_template ( '<STR_LIT>' ) <EOL> @ app . route ( '<STR_LIT>' , methods = [ '<STR_LIT:POST>' ] ) <EOL> def secured ( ) : <EOL> user = request . form [ '<STR_LIT:username>' ] <EOL> password = request . form [ '<STR_LIT:password>' ] <EOL> if ( user == "<STR_LIT>" and password == "<STR_LIT>" ) : <EOL> flash ( "<STR_LIT>" ) <EOL> return render_template ( '<STR_LIT>' ) <EOL> else : <EOL> flash ( "<STR_LIT>" + user ) <EOL> return redirect ( url_for ( '<STR_LIT>' ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . run ( debug = True ) </s>
