ソースを参照

[wsgi] [minor] fixed request host name

version-14
Rushabh Mehta 12年前
コミット
93ff8bf7f8
3個のファイルの変更3行の追加2行の削除
  1. +1
    -1
      core/doctype/profile/profile.py
  2. +1
    -1
      webnotes/auth.py
  3. +1
    -0
      webnotes/handler.py

+ 1
- 1
core/doctype/profile/profile.py ファイルの表示

@@ -214,7 +214,7 @@ Thank you,<br>
# disable the user and log him/her out
self.doc.enabled = 0
if getattr(webnotes, "login_manager", None):
if webnotes.local.login_manager:
webnotes.local.login_manager.logout(user=self.doc.name)
# delete their password


+ 1
- 1
webnotes/auth.py ファイルの表示

@@ -26,7 +26,7 @@ class HTTPRequest:
# override request method. All request to be of type POST, but if _type == "POST" then commit
if webnotes.form_dict.get("_type"):
webnotes.request_method = webnotes.form_dict.get("_type")
webnotes.local.request_method = webnotes.form_dict.get("_type")
del webnotes.form_dict["_type"]

# set db


+ 1
- 0
webnotes/handler.py ファイルの表示

@@ -30,6 +30,7 @@ def web_logout():
webnotes.repsond_as_web_page("Logged Out", """<p>You have been logged out.</p>
<p><a href='index'>Back to Home</a></p>""")
webnotes.local.login_manager.logout()
webnotes.conn.commit()

@webnotes.whitelist()
def uploadfile():


読み込み中…
キャンセル
保存