Welcome Guest, Not a member yet? Register   Sign In
Redux Authentication 1.4a (24th July 2008)

[eluser]Popcorn[/eluser]
Not a bug, I didn't have time to include it in the tutorial I did.

You can view the updated one here which checks username and email availability.

https://redux.s3.amazonaws.com/registration.html

[eluser]Popcorn[/eluser]
No problem, fixed.

[eluser]Diggory Laycock[/eluser]
Hello,

Thanks for this library - I'm just getting started with it, and so far it looks great.

I've just got a small issue I came across with the logging-in sample code.

your sample code is as so:
Code:
$redux = $this->redux_auth->login
            (
                $this->input->post('email'),
                $this->input->post('password')
            );
                
            switch ($redux)
            {
                case 'NOT_ACTIVATED':
                    # code...
                    break;
                case 'BANNED':
                    # code...
                    break;
                case false:
                    # code...
                    break;
                case true:
                    # code...
                    break;
            }

However I found that the 'NOT_ACTIVATED' case would always be chosen (even if the result was true (1))

I found that if I inserted the line:
Code:
if ($redux == '1') $redux = 'LOGGED_IN';

And instead checked for the LOGGED_IN instead of true then it worked properly.

Has anyone else seen this?

[eluser]Popcorn[/eluser]
https://redux.s3.amazonaws.com/index.html

More updates on the documentation. Technical documentation just needs usage examples and I've got a little to finish on the tutorial side too.

Expect a sample application with this release along with bug fixes.

[eluser]yatil[/eluser]
So is there a method to get the current user id or screen name? Couldn’t find any information about that.

[eluser]Popcorn[/eluser]
No

You'll have to create that function yourself.

Kind Regards,
-Mathew Davies.

[eluser]gr0uch0mars[/eluser]
I tried to use the output compression but it returns error. Does anyone know where could the error be?

Thanks.

[eluser]Tom Glover[/eluser]
Are you outputting any content, eg white space, before calling the view or output class. You cannot echo from a controller when using output compression.

[eluser]gr0uch0mars[/eluser]
Thank you for the answer. This is my controller code:
Code:
<?php
class User extends Controller
{
  function User()
  {
    parent::Controller();
    $this->load->helper(array('form'));
  }
  
  function index()
  {
    $this->load->view('users/user');
  }
  
// ...
// (Here more functions copied from the auth_redux user_guide (not from the updated one),
// that contain some echoes inside them, but I delete them and it still doesn't work)
// ...

}
?>

As it doesn't work even if I delete the rest of the code from the controller, and the view is just plain html code, I guess that the problem must be in some auth_redux code, such as the library, or I don't know where.

[eluser]Xeoncross[/eluser]
Popcorn, would you mind setting up the SVN on your google code page?

Just download http://tortoisesvn.net/ and it is really easy to upload files - just right-click on the whole folder and upload.

That way we could keep track of the changes you made and browse the code without needing to download the whole thing.




Theme © iAndrew 2016 - Forum software by © MyBB