sp1daTomm / SelectWave

A vote website
https://select-wave.vercel.app
2 stars 2 forks source link

GIT 提交信息:ResetPassword #17

Closed huan5678 closed 7 months ago

huan5678 commented 7 months ago

功能:重構密碼重置流程及視圖

echocarriet commented 7 months ago

測試登入頁面以帳密登入後台,顯示 success 後,進入空白後台,需重新整理才會顯示後台資料的畫面。

eee317 commented 7 months ago

@echocarriet 你提到的問題,應該我那邊的 nav 合併後就可以解決了 :)

eee317 commented 7 months ago

我發現不管是在部署的位置還是這支 PR 或其他 PR ,因為忘記之前註冊的帳號,所以重新新註冊想要看重設密碼這塊 結果我發現手動新註冊都沒有辦法成功

echocarriet commented 7 months ago

@echocarriet 你提到的問題,應該我那邊的 nav 合併後就可以解決了 :)

好喔,那等妳那邊合併我再測試看看。

huan5678 commented 7 months ago

不成功的原因在於 流程錯誤直接進入resetpassword的頁面是不能改的 這個頁面目前是接由重置密碼信件裡面的網址跳轉過來的方式所以預設讀網址列上的token往後端送去做重置密碼的動作,如果本來就沒有token自然是不能重設密碼

eee317 commented 7 months ago

我目前 run 起來會有這個錯誤訊息唷

image
vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
select-wave ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 2, 2024 3:34pm
eee317 commented 7 months ago

目前看靜態頁面都沒有問題 剛剛使用手動註冊也可以成功了 可能因為下圖的頁面還沒有出來,比較難有 token 去測試重設密碼是否OK

image

有試過登入狀態下切換到 /resetpassword 的路徑 但是更換秘密碼後,點送出會卡住

image image
eee317 commented 7 months ago

在 admin/change-password 可以進行使用者密碼變更 密碼變更完成後,會被登出,但是上面的 navbar 狀態卻沒有變回未登入狀態

image