Example #1
0
def masuk():
    masuk = form_login()
    if masuk.validate_on_submit():
        if masuk.email.data == "*****@*****.**" and masuk.password.data == "ancien26":
            flash("Selamat datang kembali [ceritanya username]!", "success")
            return redirect(url_for("beranda"))
        else:
            flash("Akun tidak terdaftar, silakan cek kembali email dan password Anda!", "danger")
    return render_template("03-login1.0.html", title="masuk", form = masuk)
Example #2
0
def masuk():
    masuk = form_login()
    return render_template("03-login1.0.html", title="masuk", form=masuk)