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

[eluser]Ben Edmunds[/eluser]
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

[eluser]Frank Rocco[/eluser]
Thank Ben...

Regards,

Frank
#93

[eluser]joytopia[/eluser]
[quote author="Ben Edmunds" date="1269325931"]Anybody up for translating Ion Auth?[/quote]

I will do the German translation.

Thanks for the great library and best regards

Bernd
#94

[eluser]kakap[/eluser]
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

[eluser]Ben Edmunds[/eluser]
Thanks Bernd!

Kakap,
It's a unix timestamp, you can check the userguide here: http://ellislab.com/codeigniter/user-gui...elper.html
#96

[eluser]Nemke[/eluser]
That's UNIX timestamp, you can format it with

www.php.net/strftime

EDIT: We wrote answers in the same time Smile
#97

[eluser]kakap[/eluser]
Quote: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-gui...elper.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 ?? Smile
or what if I change it to standart php function like datetime() ??

thankyou (I'm still reading more references you sent)
#98

[eluser]Ben Edmunds[/eluser]
kakap,

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

for example using mdate():
Code:
$datestring = "Year: %Y Month: %m Day: %d - %h:%i %a";
echo mdate($datestring, $user->created_on);
#99

[eluser]kakap[/eluser]
ouwh, thank you.I tried with unix_to_human function also,, Smile
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.

[eluser]Ben Edmunds[/eluser]
Hey kakap,

From the user guide:
Quote: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.




Theme © iAndrew 2016 - Forum software by © MyBB