第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

F3 路由和動態(tài)參數(shù)(驗證用戶注冊)

F3 路由和動態(tài)參數(shù)(驗證用戶注冊)

PHP
郎朗坤 2022-10-22 16:17:21
我嘗試使用 fatfree 框架來完成驗證用戶注冊。    1. user registers account on: website/register    2. I save the user data including a verification key    3. he gets an email sent to the email he provided    4. the email contains the link (http://website/register/verify.php?vkey=$vkey) for verification     5. user clicks the link and gets sent to website/register/verify.php?vkey=91cb65b234b0b5d67df68e0d7f72ed7e    6. on the website I check if isset a verification key, and    7. get the verification key stored in db and compare it with ?vkey=$vkey    8. if they match, all good, reroute測試結果:    Not Found    HTTP 404 (GET ../register/verify.php?vkey=91cb65b234b0b5d67df68e0d7f72ed7e)我如何在路由中管理它?我嘗試了什么:    $f3->route('GET /register/verify/@vkey', 'Controller\UserController->registerverified');    $f3->route('GET /register/verify.php?vkey=', 'Controller\UserController->registerverified');我很困惑,由于參數(shù)顯然是動態(tài)的,如何設置路線?或者有沒有其他方法可以驗證注冊/他來自發(fā)送給他的電子郵件中的正確鏈接?
查看完整描述

1 回答

?
心有法竹

TA貢獻1866條經(jīng)驗 獲得超5個贊

在一些幫助下弄清楚了:

    $f3->route('GET /register/verify/@vkey', 'Controller\UserController->registerverified');

然后檢查是否 isset

    $params['vkey']


查看完整回答
反對 回復 2022-10-22
  • 1 回答
  • 0 關注
  • 113 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號