[英]Extending Joomla Authentication Plugin
我想創建一個Joomla身份驗證插件,該插件將在允許用戶進行身份驗證之前執行一些業務邏輯,但是我想讓默認身份驗證插件為我完成此操作。
我想做的是:
function onAuthenticate($credentials, $options, &$response) {
// My business logic
// Execute the onAuthenticate event of the default Joomla authentication plugin
// which can be Joomla, OpenId etc.
}
因此,在我的onAuthenticate函數中,我想調用默認身份驗證插件的onAuthenticate函數。
有任何想法嗎? 抱歉,我是Joomla擴展開發的新手。 謝謝你的幫助。
我通過僅將插件和joomla身份驗證插件同時激活來解決了問題,並在插件的“訂單”列中設置了0,以便在Joomla的auth插件之前將onAuthenticate通知給它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.