proper text for sign up confirmation
This commit is contained in:
@@ -48,7 +48,7 @@ def handle_submission():
|
||||
db.session.add(new_user)
|
||||
db.session.commit()
|
||||
|
||||
return redirect(url_for('success'))
|
||||
return render_template('signup.html', success_message="Account successfully created")
|
||||
|
||||
|
||||
@app.route('/users')
|
||||
@@ -115,9 +115,5 @@ def signup():
|
||||
def all_users():
|
||||
return render_template('all_users.html')
|
||||
|
||||
@app.route('/success')
|
||||
def success():
|
||||
return render_template('success.html')
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True)
|
||||
|
||||
Binary file not shown.
@@ -12,6 +12,13 @@
|
||||
<input type="password" id="password" name="password" required><br><br>
|
||||
|
||||
<button type="submit" class="submitbutton" style="font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif; border-color: gray; border-radius: 4px; border-width: 4px;">Create account</button>
|
||||
{% if success_message %}
|
||||
<p style="color: green; margin-top: 15px; font-weight: bold;">
|
||||
{{ success_message }}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
@@ -1,4 +0,0 @@
|
||||
<body>
|
||||
<h1>SUCCESSFULLY MADE ACCOUNT
|
||||
<button><a href="{{ url_for('signin') }}">click to go to sign in page</a></button>
|
||||
</body>
|
||||
Reference in New Issue
Block a user