Welcome Guest, Not a member yet? Register   Sign In
The Authentication Library 1.0.6
#91

[eluser]rdjs[/eluser]
Hi,

I think this is a similar problem to the one I described here

http://ellislab.com/forums/viewthread/12...10/#619386

It is trying to get to random.org to generate a unique string. Instead you could you try using

Code:
$token = sha1(mt_rand(10000,99999).time().$username);


To generate the random string in place of the existing code.

If this is a problem that more people are having I wonder if the author might consider making this change in the original code.

Thanks,

Russell.
#92

[eluser]InsiteFX[/eluser]
Just remark out the random.org code thats all you need to do.

If you look at the function you will see that there are 3 ways to do it.

Enjoy
InsiteFX
#93

[eluser]Unknown[/eluser]
OK, I've installed the library but I'm having issues getting the register to work on other parts of my site. My register code is a jquery popup box that displays the following DIV. Honestly I'm not sure where i need to put $this->auth->register(); in order for it to work.

<div id="popup_name" class="popup_block">
&lt;?php $this->auth->register(); ?&gt;
</div>

That is what i have now and the only thing that pops up when you select the link is text that says "the authentication library admin panel".

Any input and Noob help would be appreciated.

Thanks,
#94

[eluser]misterMAGi[/eluser]
Hi

i open a topic here:
http://ellislab.com/forums/viewthread/155687/

I have problem with auth library and pagination class.

Someone use pagination without problem?

Thanks for your help
#95

[eluser]bennyhill[/eluser]
Anthing special I have to do to get this to work with HMVC?
#96

[eluser]Unknown[/eluser]
Hi!

Where is class Application?

Fatal error: Class 'Application' not found in ...

:S
#97

[eluser]InsiteFX[/eluser]
It's a MY_Contoller in application/libraries it needs to be moved to application/core
you may also need to add this at the bottom of application/config/config.php
Code:
/*
| -------------------------------------------------------------------
|  Native Autoload - by Phil Sturgeon. New Version!
| -------------------------------------------------------------------
|
| Nothing to do with config/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries.
|
| If using HMVC you do not need this! HMVC will autoload.
|
| Place this code at the bottom of your application/config/config.php file.
*/
function __autoload($class)
{
    if (strpos($class, 'CI_') !== 0)
    {
        if (file_exists($file = APPPATH . 'core/' . $class . EXT))
        {
            include $file;
        }

        elseif (file_exists($file = APPPATH . 'libraries/' . $class . EXT))
        {
            include $file;
        }
    }
}
I have now fully converted this over to CodeIgniter 2.0.1

InsiteFX
#98

[eluser]North2Alaska[/eluser]
I'm trying to understand the connection between the groups table and the auth_groups array in the config file. It seems I should need one or the other, but not both.

Also, how can I assign a user to multiple groups?

I'm using CI 2.1.0 and v2.0.0 of The Authentication Library
#99

[eluser]InsiteFX[/eluser]
You would need to add a new table user_groups
Code:
-- ------------------------------------------------------------------------

--
-- Table structure for table 'user_groups'
--

DROP TABLE IF EXISTS `user_groups`;

CREATE TABLE `user_groups` (
  `id`       bigint(11) unsigned NOT NULL  AUTO_INCREMENT,
  `user_id`  bigint(11) unsigned NOT NULL,
  `group_id` bigint(11) unsigned NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;


[eluser]North2Alaska[/eluser]
Yes, of course. I should have thought of that. Doh!

So, what is the relationship between the array in the config file and the table(s)?




Theme © iAndrew 2016 - Forum software by © MyBB