浏览代码

added flash message to username change

control 3 年之前
父节点
当前提交
040f96077c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/logic.py

+ 1 - 0
app/logic.py

@@ -22,6 +22,7 @@ def home():
         if username:
             nusern_dbcall = User.query.filter_by(id=current_user.id).first()
             nusern_dbcall.username = username
+            flash('Username updated!', category='success')
         elif passwd and passwdc:
             if passwd == passwdc:
                 npasswd_dbcall = User.query.filter_by(id=current_user.id).first()