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 登录参数

      Add Joomla login parameters(添加 Joomla 登录参数)

        <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 登录参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Is Joomla 2.5 much faster than Joomla 1.5 Querywise(Joomla 2.5 比 Joomla 1.5 Querywise 快得多吗)
                How to share Joomla login session from one joomla website to one ASP.Net MVC website(如何将 Joomla 登录会话从一个 joomla 网站共享到一个 ASP.Net MVC 网站)
                htaccess redirect root to subdirectory but allow index.php in root AND query strings to function(htaccess 将根重定向到子目录,但允许根和查询字符串中的 index.php 起作用)
                Joomla include database functions(Joomla 包含数据库功能)
                nl2br() not working when displaying SQL results(显示 SQL 结果时 nl2br() 不起作用)
                Joomla 2.5 JFactory::getSession(); seems to be caching in firefox(Joomla 2.5 JFactory::getSession();似乎在 Firefox 中缓存)
                  <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>

                            <tbody id='3fF8U'></tbody>