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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

F3 路由和動(dòng)態(tài)參數(shù)(驗(yàn)證用戶注冊(cè))

F3 路由和動(dòng)態(tài)參數(shù)(驗(yàn)證用戶注冊(cè))

PHP
郎朗坤 2022-10-22 16:17:21
我嘗試使用 fatfree 框架來完成驗(yàn)證用戶注冊(cè)。    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測(cè)試結(jié)果:    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ù)顯然是動(dòng)態(tài)的,如何設(shè)置路線?或者有沒有其他方法可以驗(yàn)證注冊(cè)/他來自發(fā)送給他的電子郵件中的正確鏈接?
查看完整描述

1 回答

?
心有法竹

TA貢獻(xiàn)1866條經(jīng)驗(yàn) 獲得超5個(gè)贊

在一些幫助下弄清楚了:

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

然后檢查是否 isset

    $params['vkey']


查看完整回答
反對(duì) 回復(fù) 2022-10-22
  • 1 回答
  • 0 關(guān)注
  • 128 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)