ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Ion Auth - Lightweight Auth System based on Redux Auth 2

February 10, 2010 7:00pm

Subscribe [287]
  • #91 / Mar 24, 2010 10:28am

    Ben Edmunds

    812 posts

    Frank,

    Yes the return form is called from the email template.

    No edit user will not.  You could change the example code to check if the user exists and if not create them.

    In the example code it is only expecting an admin to create a user but you can change it however you need.  The register method of ion_auth doesn’t require you to be an admin or not.

  • #92 / Mar 24, 2010 10:37am

    Frank Rocco

    109 posts

    Thank Ben…

    Regards,

    Frank

  • #93 / Mar 26, 2010 5:13am

    joytopia

    76 posts

    Anybody up for translating Ion Auth?

    I will do the German translation.

    Thanks for the great library and best regards

    Bernd

  • #94 / Mar 27, 2010 4:33am

    kakap

    24 posts

    hello,may I ask ?
    the data stored to field ‘created_on’ and ‘last_login’ is generated from mysql function ‘now()’ , is that right ???
    I’m confused, how to read the data stored.
    this is the example :

    1268889823 <- sample from my field ‘created_on’

    how to read that ??

    thankyou very much on ur explanation.

  • #95 / Mar 27, 2010 5:44am

    Ben Edmunds

    812 posts

    Thanks Bernd!

    Kakap,
    It’s a unix timestamp, you can check the userguide here: http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html

  • #96 / Mar 27, 2010 5:45am

    Nemke

    5 posts

    That’s UNIX timestamp, you can format it with

    http://www.php.net/strftime

    EDIT: We wrote answers in the same time 😊

  • #97 / Mar 28, 2010 11:04am

    kakap

    24 posts

    now()

    Returns the current time as a Unix timestamp, referenced either to your server’s local time or GMT, based on the “time reference” setting in your config file. If you do not intend to set your master time reference to GMT (which you’ll typically do if you run a site that lets each user set their own timezone settings) there is no benefit to using this function over PHP’s time() function.

    http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html
    http://id2.php.net/strftime

    so,excusme, how to change it to standart format like “22 Jun 2010 22:05” when it’s retrieved ?? 😊
    or what if I change it to standart php function like datetime() ??

    thankyou (I’m still reading more references you sent)

  • #98 / Mar 28, 2010 4:58pm

    Ben Edmunds

    812 posts

    kakap,

    You can use CI’s mdate or PHP’s date.

    for example using mdate():

    $datestring = "Year: %Y Month: %m Day: %d - %h:%i %a";
    echo mdate($datestring, $user->created_on);
  • #99 / Mar 29, 2010 3:11pm

    kakap

    24 posts

    ouwh, thank you.I tried with unix_to_human function also,, 😊
    but,the time result from both of them is not match with my PC time,it’s about one hour faster. is that normal ??. (just tried @localhost).

    thank you to answered my question before.

  • #100 / Mar 29, 2010 3:53pm

    Ben Edmunds

    812 posts

    Hey kakap,

    From the user guide:

    Returns the current time as a Unix timestamp, referenced either to your server’s local time or GMT, based on the “time reference” setting in your config file.

    It depends on how your server is setup as to whether or not it is based on the server’s localtime or GMT.

  • #101 / Mar 30, 2010 10:48am

    Frank Rocco

    109 posts

    Hi Ben,

    Does ion support auto login?
    Our users hate logging in by pressing the login button.

    If not, could this be added?

    Thanks

    Frank

  • #102 / Mar 30, 2010 11:07am

    Ben Edmunds

    812 posts

    I’m not sure what you mean Frank?

    You can use the “remember me” functionality and set the user expire in the config…  Is that what you meant?

  • #103 / Mar 30, 2010 3:04pm

    Frank Rocco

    109 posts

    Would they still have to hit login, to login?

    Or could they just point to our url and go to our home screen if login is remembered.

  • #104 / Mar 30, 2010 3:14pm

    Ben Edmunds

    812 posts

    Frank,

    The user just logs in once and then they will remain logged in until their cookie expires, the expire setting is in the config.

    The way it works is, if remember me is set a cookie is stored and then in the constructor of Ion Auth it checks for a valid cookie and if it exists it automatically logs them in.

  • #105 / Mar 30, 2010 6:00pm

    Frank Rocco

    109 posts

    Thanks Ben….

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases