![]() |
Ion Auth - Lightweight Auth System based on Redux Auth 2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Ion Auth - Lightweight Auth System based on Redux Auth 2 (/showthread.php?tid=27435) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-07-2010 [eluser]Ben Edmunds[/eluser] srpurdy, If you mean like checking logged in or if the user is an admin just add a constructor to the controller with ion_auth->logged_in() or ion_auth->is_admin() or whatever you need. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-07-2010 [eluser]Ben Edmunds[/eluser] alanmi2 and Sandyandi N. dela Cruz, Please fork and submit a pull request on Github. It gets a little difficult to keep up with all of the code changes through the forums and email. Bernd, I haven't forgot about ya man, I promise! ![]() Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]huuray[/eluser] ben,may i know why you used UNIXTIME rather to use CURRENT_TIME on created_on and last_login field? Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]joytopia[/eluser] [quote author="huuray" date="1278793281"]ben,may i know why you used UNIXTIME rather to use CURRENT_TIME on created_on and last_login field?[/quote] I think, the reason is to be compatible with CI date helper: http://ellislab.com/codeigniter/user-guide/helpers/date_helper.html Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]Ben Edmunds[/eluser] Sandyandi N. dela Cruz, I just added this code to the update_user method in the model: Code: if (array_key_exists($this->identity_column, $data) && $this->identity_check($data[$this->identity_column]) && $user->{$this->identity_column} !== $data[$this->identity_column]) Please check and make sure it works for you as well. Thanks! Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]Kola[/eluser] Is there a particular reason for the following functions, not to be merged? message(); set_message(); error(); set_error(); I managed to cook it down to 2 functions, 1 which takes the message, message type and the delimiter position (1,2) and then 1 function which selects the correct delimiter based on the type of message. But I could be wrong, there might be some clever reason it's devided ![]() Edit: which would be awesome to know as I'm coding a message feature into a core class of a site, rather than just the authentication system ^.- Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]Ben Edmunds[/eluser] Kola, No technical reason. It was coded to be similar to the form_validation error methods. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]Kola[/eluser] Oh and why does it recieve an array of messages? I'm new to the whole CI (and MVC pattern for that matter, which can be confusing), so I guess you wouldn't send more than 1 error? Atleast I had issues trying to dig a set of messages out from your example codes. Might just have missed it. System looks pretty solid though, I just suck at understanding stuff I havnt wrote me self :/ Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]Ben Edmunds[/eluser] Kola, Do you mean ion_auth->errors()? If you do, it returns all of the errors formatted with the delimiters that are set. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 07-10-2010 [eluser]Ben Edmunds[/eluser] Yo everybody, Due to the large demand from you guys and me actually having a little time to spare today I've started (you might want to sit down for this) DOCUMENTING! I would love some help if anybody has some time, I've added a userguide folder to the github repo and you can view what I've got so far (which isn't much) at http://benedmunds.com/ion_auth/ |