Cannot register

Asked by Patrick

=========================zh_TW==========================
網站填完註冊表後得到403Error

=========================en_US==========================
Add filling the form on http://ubuntu-tweak.com/accounts/register/

I got nothing but a 403 Error.

Question information

Language:
Chinese (Traditional) Edit question
Status:
Solved
For:
UTCOM Edit question
Assignee:
No assignee Edit question
Solved by:
Patrick
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Ding Zhou (tualatrix) said :
#2

你可以告訴我你註冊時用的電子郵件帳戶嗎?

Revision history for this message
Patrick (pjw91) said :
#3

我沒記錯的話應該是
<email address hidden>

Revision history for this message
Ding Zhou (tualatrix) said :
#4

如果需要的話,請您再註冊一次,後台並未發現該記錄。可能剛剛網站出錯了。

Revision history for this message
Patrick (pjw91) said :
#5

我剛試了一次,
用Chromium的結果是一個空白的403error
用Firefox是403Error(CSRF verification failed)[django的鵝黃錯誤頁面]

檢查request&response後發現:
1. 表單中沒有附上<input name="csrftoken">
2. 沒有set-cookie: csrftoken

Revision history for this message
Ding Zhou (tualatrix) said :
#6

Oops...升級網站時忘記加上csrftoken又未測試,真是疏漏,現在已經修正並測試通過了。謝謝報告~

Revision history for this message
Patrick (pjw91) said :
#7

OK註冊通過了,感謝您

但,*個人檔案*中的*個人資訊*、*移除個人資訊*兩表單也忘了加上csrftoken

另外,這個bug也是同樣問題
https://bugs.launchpad.net/ubuntu-tweak-website/+bug/1088471
所以可以fixed了

Revision history for this message
Ding Zhou (tualatrix) said :
#8

謝謝,已經將這兩個也修正了。網站年久失修,問題真不少,此Bug已經設置爲 Fixed 。