Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]Unknown[/eluser]
I have a bit of a newb question. I installed ion auth but when i navigate to codeigniter on local host, im still seeing the code igniter welcome page

[eluser]rulin[/eluser]
Hi Callidus

You'll need to add (as a minimum) the following code to your controller
Code:
$this->load->library('ion_auth');
and
Code:
if (!$this->ion_auth->logged_in())
{
//redirect them to the login page
redirect('auth/login', 'refresh');
}

[eluser]theshiftexchange[/eluser]
Question regarding passwords + security. My current config:

Code:
$config['hash_method'] = 'bcrypt';  
$config['default_rounds'] = 8;  
$config['random_rounds'] = true;
$config['min_rounds'] = 5;
$config['max_rounds'] = 9;

Generates passwords like this:

Code:
$2a$08$pMmzIomXsmPhl8CfXDx7ZebKxTID2We5Sr3tgBNkIw81vJSQfqll.
$2a$09$tH2Z3gbGrhHaP8VDdD6bD.a5QEzfMxA41BrAsSmQtjkd8YWRqF9Sm
$2a$07$v0tBBmGO5Ym/AH4mjXikpeMdkHxi2C.W2FKcdP2Xxj12JWPRQ3z3W


So is the $2a$08 saying that it is bcrypt - and to run 8 rounds on it? And $2a$09 is saying run 9 rounds?

[eluser]rip_pit[/eluser]
[quote author="rip_pit" date="1331245640"]
I would need some advice about a problem i had with my app, ion_auth and firefox
It often log me out without asking then i sometimes must restart firefox to be able to login again [/quote]

Solved, seems to be a know bug in codeigniter database session handling.
ID is regenerated too fast, it breaks.
I fixed it by installing CI Native Session and no more random disconnecting Smile search the forum for more infos Wink

[eluser]bill19[/eluser]
Hi All,

I've got a very basic question ? How do I set up email notifications. In the Ion auth config file I've done:

Code:
$config['use_ci_email']= false;

/**
  * Email config -
  *  'file' = use the default CI config or use from a config file
  *  array = manually set your email config settings
  **/
$config['email_config']         = array(
  'protocol'=>'smtp',
  'smtp_host'=>'ssl://smtp.googlemail.com', //(SMTP server)
  'smtp_port'=>'465', //(SMTP port)
  'smtp_timeout'=>'30',
  'smtp_user'=>'**********', //([email protected])
  'smtp_pass'=>'**********', // (gmail password)
  'mailtype' => 'html',
  'charset' => 'utf-8',
  'newline' => "\r\n",
);

But Its not working,

Thanks in advance,

Bill

[eluser]Unknown[/eluser]
Hello My friend Ben.

Thanks you and thanks for your solution,Ion Auth.

I have used Ion Auth in my project and I want to customize user table but I have not understood yet.
please show me how to change it or where i can find a proper post in order to solve my problem.

Thanks for your help.

[eluser]bill19[/eluser]
Hi,

I have got it working.

the steps are:

1) change in application/config/ion_auth.php:

Code:
$config['use_ci_email']= false;
$config['email_config']         = 'email';

2) create new config file called email.php, with the following content:

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| Email
| -------------------------------------------------------------------------
| This file lets you define parameters for sending emails.
| Please see the user guide for info:
|
| http://ellislab.com/codeigniter/user-guide/libraries/email.html
|
*/
$config['protocol']='smtp';

$config['smtp_host']='ssl://smtp.googlemail.com'; //(SMTP server)

$config['smtp_port']='465'; //(SMTP port)

$config['smtp_timeout']='30';

$config['smtp_user']='[email protected]'; //([email protected])

$config['smtp_pass']='qwertyuiop93'; // (gmail password)


$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['newline'] = "\r\n";


/* End of file email.php */
/* Location: ./application/config/email.php */

3) drop it into the application/config folder.

It should work now,

Regards,

Bill


[eluser]gbd_dee[/eluser]
I downloaded Ion Auth library. I'm very new to codeigniter and need a little guidance using your library. Think of my site as being similar to craigslist.


I have 4 types of users
Listers- people who list ads
Viewers - People who view ads
One- Time - Listers (They dont have a subscription, they can only post one ad (pay as you go type thingy)
Admin - activate all of the above

Question - how do I set up these different users ----?

[eluser]ReyPM[/eluser]
Hi Ben, can I use my own tables? I mean I have a PostgreSQL database and this DB can't be changed so there is a table for users but not for groups and permissions. So any tips?

[eluser]SlasHo[/eluser]
How do I set new groups to a user?

I'm using this:

Code:
$post_array = array(
                  'username' => 'username_name',
                  'email' => 'the email',
                  'password' => 'passtext',
                  'first_name' => 'name',
                  'last_name' => 'lname',
                  'phone' => '3692587',
                  'group' => Array
                                  ('2','3'));

$this->ion_auth->update($primary_key, $post_array);



but nothing happens. any idea?




Theme © iAndrew 2016 - Forum software by © MyBB