[WordPress] 外掛分享: Case-Insensitive Passwords

前言介紹

  • 這款 WordPress 外掛「Case-Insensitive Passwords」是 2010-12-01 上架。
  • 目前有 70 個安裝啟用數。
  • 上一次更新是 2014-09-04,距離現在已有 3895 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.8 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

layotte |

外掛標籤

case | password | strtolower | insensitive |

內容簡介

這個外掛的基本原理是在將密碼儲存到資料庫前,將它強制轉換為小寫後再進行雜湊處理。當使用者登入時,它會將密碼輸入轉為小寫,進行雜湊比對與資料庫中的儲存值進行比對,從而達到大小寫不敏感的效果。這種大小寫不敏感的功能僅適用於新生成的密碼,因此我編寫了此外掛,以檢查未強制轉換為小寫的密碼是否正確,如果失敗,則強制轉換為小寫後再進行檢查。

原文外掛簡介

The basic premise of my plugin is that it takes the password given to it and forces it to lowercase before hashing it and storing it in the database. When a user logs in, it will take the password input and force it to lowercase, hash it, and compare it to what is stored in the database. This produces the affect of case-insensitivity. The case-insensitivity only works for newly generated passwords, so I built the plugin to check the password submitted without forcing to lowercase, if it fails it will force it to lowercase and check again.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Case-Insensitive Passwords」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.0.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Make Filename Lowercase 》這個外掛會將上傳媒體檔案名稱轉換成小寫,這是透過 sanitize_file_name 的篩選器進行操作的。這個想法是從 Stack Overflow 上關於「在 WordPress 3.0 後台上...。

文章
Filter
Apply Filters
Mastodon