Sfoglia il codice sorgente

리다이렉트 버그 수정

2du 7 anni fa
parent
commit
35cbeb21f6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      route/login_pw_change.py

+ 2 - 0
route/login_pw_change.py

@@ -31,6 +31,8 @@ def login_pw_change_2(conn):
             hashed = pw_encode(flask.request.form.get('pw2', None))
                 
             curs.execute("update user set pw = ? where id = ?", [hashed, ip_check()])
+
+            return redirect('/user')
     else:
         return easy_minify(flask.render_template(skin_check(), 
             imp = [load_lang('password_change'), wiki_set(), custom(), other2([0, 0])],