Skip to content

Commit

Permalink
Merge pull request #137 from ECE444-2023Fall/dev-hp-fix-flash-msgs
Browse files Browse the repository at this point in the history
Fixed a few flash message categories
  • Loading branch information
pandyah5 authored Nov 10, 2023
2 parents 0d5c907 + de373a2 commit 94c7d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def show_user_details():
current_user_details.email=form.email.data

# Update the flash message
flash("Your details have been successfully updated!", "info")
flash("Your details have been successfully updated!", category="primary")

# Save the updates
db.session.commit()
Expand Down Expand Up @@ -89,7 +89,7 @@ def add_user_details():
db.session.add(new_user_details)
db.session.commit()

flash("Your details have been saved. You can always modify them from the 'My Account' tab", "info")
flash("Your details have been saved. You can always modify them from the 'My Account' section", category="primary")
return redirect(url_for("user.main"))

return render_template("user_register.html", form=form)
Expand Down

0 comments on commit 94c7d62

Please sign in to comment.