我在 cakephp 2.4 中遇到了登錄頁面 (I'm getting stuck with login page in cakephp 2.4)


問題描述

我在 cakephp 2.4 中遇到了登錄頁面 (I'm getting stuck with login page in cakephp 2.4)

我在 cakephp 2.4 中的登錄頁面卡住了,誰能幫我弄清楚我犯了什麼錯誤。太感謝了!(為什麼我在查詢的WHERE子句中沒有看到密碼??)

這裡是sql文件,項目文件和兩張圖片描述了問題:

  • SQL 文件:dropbox.com/s/b4pv419j09rp5jk/chickenrainshop.sql?dl=0

  • 項目文件:dropbox.com/s/kextdrpzizyskwd/chickenrainshop.zip?dl =0

在此處輸入圖片描述

在此處輸入圖片描述


參考解法

方法 1:

You're not seeing the password column in the WHERE clause because Cakes authentication layer compares passwords at PHP level, using the configured password hasher, which by default is SimplePasswordHasher (at least in CakePHP 2.x), using sha1, sha256, or md5, depending on what's available on the system (in that order, and in any case salted with the Security.salt config value).

The password values in your database are most probably both wrong, the first one looks like md5, which is unlikely to be used by your app, and the second one is a plain string, which will never work.

So as already hinted in the comments, update your database with the correct password hashes. Ideally add the users to your database via your app.

See also

(by Nhan Nguyenndm)

參考文件

  1. I'm getting stuck with login page in cakephp 2.4 (CC BY‑SA 2.5/3.0/4.0)

#login #authentication #PHP #cakephp-2.4 #cakephp






相關問題

只允許 oracle db 登錄到特定的應用程序? (Allowing oracle db login only to specific application?)

使用 FB.login 的註冊流程 (Registration flow using FB.login)

asp.net c# sistem login (asp.net c# login system)

Rails 設計登錄不工作 (Rails devise sign in not working)

我在 cakephp 2.4 中遇到了登錄頁面 (I'm getting stuck with login page in cakephp 2.4)

如何刪除特定用戶的會話登錄 (How to remove session login for specific user)

有沒有標準的asp.net認證授權登錄系統? (Is there a standard asp.net authentication authorization login system?)

所有這些網絡平台如何實現不需要用戶反复登錄的長時間登錄會話? (How do all these web platforms achieve a long-time login session that does not require the user to login over and over again?)

Util-Linux 登錄不使用影子密碼 (Util-Linux Login not working with shadow password)

Android Webview Facebook 登錄 (Android Webview Facebook Login)

重置 Bookstack 憑據 (Reset Bookstack Credentials)

輸入正確的詳細信息且未顯示錯誤後,登錄頁面未重定向到 index.php (Login in page not redirecting to index.php after entering correct details with no error displayed)







留言討論