1. <tfoot id='cj6nX'></tfoot>
    <i id='cj6nX'><tr id='cj6nX'><dt id='cj6nX'><q id='cj6nX'><span id='cj6nX'><b id='cj6nX'><form id='cj6nX'><ins id='cj6nX'></ins><ul id='cj6nX'></ul><sub id='cj6nX'></sub></form><legend id='cj6nX'></legend><bdo id='cj6nX'><pre id='cj6nX'><center id='cj6nX'></center></pre></bdo></b><th id='cj6nX'></th></span></q></dt></tr></i><div id='cj6nX'><tfoot id='cj6nX'></tfoot><dl id='cj6nX'><fieldset id='cj6nX'></fieldset></dl></div>

    1. <legend id='cj6nX'><style id='cj6nX'><dir id='cj6nX'><q id='cj6nX'></q></dir></style></legend>

      • <bdo id='cj6nX'></bdo><ul id='cj6nX'></ul>
    2. <small id='cj6nX'></small><noframes id='cj6nX'>

      添加 Joomla 登录参数

      时间:2023-10-15

        <i id='PrsNw'><tr id='PrsNw'><dt id='PrsNw'><q id='PrsNw'><span id='PrsNw'><b id='PrsNw'><form id='PrsNw'><ins id='PrsNw'></ins><ul id='PrsNw'></ul><sub id='PrsNw'></sub></form><legend id='PrsNw'></legend><bdo id='PrsNw'><pre id='PrsNw'><center id='PrsNw'></center></pre></bdo></b><th id='PrsNw'></th></span></q></dt></tr></i><div id='PrsNw'><tfoot id='PrsNw'></tfoot><dl id='PrsNw'><fieldset id='PrsNw'></fieldset></dl></div>
          <tfoot id='PrsNw'></tfoot>

                <tbody id='PrsNw'></tbody>
              • <bdo id='PrsNw'></bdo><ul id='PrsNw'></ul>

                <small id='PrsNw'></small><noframes id='PrsNw'>

                <legend id='PrsNw'><style id='PrsNw'><dir id='PrsNw'><q id='PrsNw'></q></dir></style></legend>
                本文介绍了添加 Joomla 登录参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我使用 joomla 3.1,我是新手..

                I work with joomla 3.1, and im a newbie..

                我建议用户通过两种方式进行连接.- 首先使用已经在生产中使用电子邮件地址(如 email@domain.com)和密码的传统方式- 其次,我想允许他们使用他们使用的电话应用程序 ID(如 4456544485)和密码(与第一种方式相同)登录

                I would suggest users to connect in two ways. - First with the traditional way that is allready in production with Email address (like email@domain.com) and password - Second, i would like to allow them to login with the phone application ID that they use.(like 4456544485) and password(same as the first way)

                使用的登录系统是 com_users 组件.电话应用程序 ID 位于另一个数据库 (phoneapp) 中,并且有一个电子邮件字段.

                The login system used is the com_users component. the phone application ID is in another DataBase (phoneapp) and has a email field.

                但我不知道我必须编辑的女巫文件......?

                But i don't know witch file i have to edit..?

                感谢您的帮助

                推荐答案

                编写身份验证插件不应该太难 http://docs.joomla.org/J3.2:Creating_an_Authentication_Plugin_for_Joomla.我建议从默认的 Joomla 身份验证插件扩展您的手机应用程序插件 https://github.com/joomla/joomla-cms/blob/master/plugins/authentication/joomla/joomla.php 喜欢

                Writing an authentication plugin should not be too hard http://docs.joomla.org/J3.2:Creating_an_Authentication_Plugin_for_Joomla. I suggest to extend then your phone app plugin from the default Joomla authentication plugin https://github.com/joomla/joomla-cms/blob/master/plugins/authentication/joomla/joomla.php like

                JLoadder::import('authentication.joomla.joomla', JPATH_PLUGINS);
                
                class PlgAuthenticationPhone extends PlgAuthenticationJoomla
                {
                    public function onUserAuthenticate($credentials, $options, &$response)
                    {
                        // Do your authentication with the number on the other database
                        .....
                
                        // if it failed do the fallback to Joomla
                        return parent::onUserAuthenticate($credentials, $options, $response);
                    }
                }
                

                这篇关于添加 Joomla 登录参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:Joomla 3.1 介绍图片作为阅读更多链接 下一篇:PHP 中的 Null 与 False 与 0

                相关文章

                <legend id='3fF8U'><style id='3fF8U'><dir id='3fF8U'><q id='3fF8U'></q></dir></style></legend>

                <small id='3fF8U'></small><noframes id='3fF8U'>

                    <bdo id='3fF8U'></bdo><ul id='3fF8U'></ul>

                  <i id='3fF8U'><tr id='3fF8U'><dt id='3fF8U'><q id='3fF8U'><span id='3fF8U'><b id='3fF8U'><form id='3fF8U'><ins id='3fF8U'></ins><ul id='3fF8U'></ul><sub id='3fF8U'></sub></form><legend id='3fF8U'></legend><bdo id='3fF8U'><pre id='3fF8U'><center id='3fF8U'></center></pre></bdo></b><th id='3fF8U'></th></span></q></dt></tr></i><div id='3fF8U'><tfoot id='3fF8U'></tfoot><dl id='3fF8U'><fieldset id='3fF8U'></fieldset></dl></div>
                  <tfoot id='3fF8U'></tfoot>