from flask import Flask
from flask import Flask, flash, redirect, render_template, request, url_for


app = Flask(__name__)

@app.route('/')
def home():
    return render_template('login.html')



@app.route('/login', methods=['GET','POST'])
def login():
    error=None
    if request.method=='POST' :
        if request.form['username'] != 'admin' or request.form['password'] !='admin':
            error= 'Invalid credentials. Please try again.'
        else:
            return redirect(url_for('/'))
    return render_template('login.html',error=error)



if __name__ == "__main__":
    app.run(debug= True,host='0.0.0.0', port=4000);

c8594d9d68c3c83a5fb3a7009c1ed734fbb3b381
<mask token>


@app.route('/')
def home():
    return render_template('login.html')


@app.route('/login', methods=['GET', 'POST'])
def login():
    error = None
    if request.method == 'POST':
        if request.form['username'] != 'admin' or request.form['password'
            ] != 'admin':
            error = 'Invalid credentials. Please try again.'
        else:
            return redirect(url_for('/'))
    return render_template('login.html', error=error)


<mask token>

<mask token>


@app.route('/')
def home():
    return render_template('login.html')


@app.route('/login', methods=['GET', 'POST'])
def login():
    error = None
    if request.method == 'POST':
        if request.form['username'] != 'admin' or request.form['password'
            ] != 'admin':
            error = 'Invalid credentials. Please try again.'
        else:
            return redirect(url_for('/'))
    return render_template('login.html', error=error)


if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=4000)

<mask token>
app = Flask(__name__)


@app.route('/')
def home():
    return render_template('login.html')


@app.route('/login', methods=['GET', 'POST'])
def login():
    error = None
    if request.method == 'POST':
        if request.form['username'] != 'admin' or request.form['password'
            ] != 'admin':
            error = 'Invalid credentials. Please try again.'
        else:
            return redirect(url_for('/'))
    return render_template('login.html', error=error)


if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=4000)

from flask import Flask
from flask import Flask, flash, redirect, render_template, request, url_for
app = Flask(__name__)


@app.route('/')
def home():
    return render_template('login.html')


@app.route('/login', methods=['GET', 'POST'])
def login():
    error = None
    if request.method == 'POST':
        if request.form['username'] != 'admin' or request.form['password'
            ] != 'admin':
            error = 'Invalid credentials. Please try again.'
        else:
            return redirect(url_for('/'))
    return render_template('login.html', error=error)


if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=4000)

from flask import Flask
from flask import Flask, flash, redirect, render_template, request, url_for


app = Flask(__name__)

@app.route('/')
def home():
    return render_template('login.html')



@app.route('/login', methods=['GET','POST'])
def login():
    error=None
    if request.method=='POST' :
        if request.form['username'] != 'admin' or request.form['password'] !='admin':
            error= 'Invalid credentials. Please try again.'
        else:
            return redirect(url_for('/'))
    return render_template('login.html',error=error)



if __name__ == "__main__":
    app.run(debug= True,host='0.0.0.0', port=4000);
