![]() |
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 - 05-12-2010 [eluser]hovhannes[/eluser] Thanks Ben ![]() Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-12-2010 [eluser]davidjlynch[/eluser] Hi Ben, I am new to codeigniter, great work, just one thing, I cannot seem to get the email_check to return error message 'Email already in use' or something similar using the below; Code: $this->form_validation->set_rules('email', 'Email Address', 'required|valid_email|callback_email_check'); / Code: ** also tried using you callback function on page 25 of this post, any help would be greatly appreciated. Thanks in advance Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-12-2010 [eluser]Ben Edmunds[/eluser] davidjlynch, Add the callback function I posted earlier to your controller and it should work. Let me know if you get any errors. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-12-2010 [eluser]Timothy_[/eluser] Does anyone have a good solution to retrieving the users that are currently logged in? Thanks, Tim Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]joytopia[/eluser] Email functions: bug-fixes and new features Bug-fixes: forgotten_password and forgotten_password_complete: in case of success an error-message was set instead of set_message. Plain-text version of emails did not show the link. This is fixed by the email_with_markers feature. New features: email_with_markers: Code: $config['email_templates'] = 'auth/email_with_markers/'; now uses a set of email templates with markers ###subject###, ###message### and ###alt_message### So you have a comfortable control over functionality, look an feel of your emails. You can use the methods Code: $this->ion_auth->get_message_from_template($template, $data) and Code: $this->ion_auth->send_email($email, $subject, $message, $alt_message = '') Now supports mailtype simply set Code: /** Send email and / or return a data-array Code: /** So you can easily do so something with calculated data directly after the registration, i.e. update some fields in the database or show the new user his user_id or make your own confirmation-process. I tested as well as I could. It should be fully backward compatible. As I am not yet on GitHub, I post the files here. Thank you for your feedback! Best regards Bernd Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]joytopia[/eluser] [quote author="Timothy_" date="1273747687"]Does anyone have a good solution to retrieving the users that are currently logged in? Thanks, Tim[/quote] What about showing the username from table ci_sessions WHERE last_activity > now() - 360 Best regards Bernd Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]Ben Edmunds[/eluser] Bernd, Those changes sound pretty good to me but I haven't had a chance to go through the code yet (crazy week!). Any chance you could do a github pull request anytime soon? If not, I can probably get around to going through it sometime next week. Thanks! Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]megabyte[/eluser] Library looks utterly amazing. I think both Ben and Phil rock, although I don't know them, lol. Anyway my question is: How bug free is it now? would you recommend for or against using it on a live website. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]Ben Edmunds[/eluser] megabyte, I know us and I agree, we do rock. There are no known bugs at the moment and I am using the library on several production sites plus all of the sites that are using PyroCMS are using Ion Auth under the hood. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]megabyte[/eluser] What about the bug fixes joytopia mentioned? Are these actual bugs that needed to be fixed? |