![]() |
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 - 03-19-2011 [eluser]Ben Edmunds[/eluser] jk215, So you change identity to username, then try to login with username=admin and you get a login error. Make sure the username is set in the DB. You might have to throw some debug code in ion_auth_model->login()... Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-20-2011 [eluser]Kevin Smith[/eluser] Hey Ben, thanks for all your work on this. Forgive me if my question is answered in one of the 83 other pages for this thread; I couldn't find it by searching. Do you have any plans in the works for making Ion Auth compatible with MongoDB? Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-20-2011 [eluser]Ben Edmunds[/eluser] Kevin, Not really, a lot of the time even if your using a nosql database you would store users in a sql db. If you write a model for it though send me a pull request, I'm sure it would help others. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-21-2011 [eluser]phpserver[/eluser] I am using ion auth with sqlite3.I commented lines 549 and 884 of ion_auth_model and it worked,although i am gonna look at it later,see the auth model on sync in.I am using codeigniter 1.7.2 and PDO sqlite3 pdo driver here is the sql: Code: CREATE TABLE [ci_sessions] ( Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-21-2011 [eluser]Kevin Smith[/eluser] [quote author="Ben Edmunds" date="1300702925"]Kevin, Not really, a lot of the time even if your using a nosql database you would store users in a sql db. If you write a model for it though send me a pull request, I'm sure it would help others.[/quote] Ah, thanks for the info. I'm still dipping my toes into this NoSQL thing, so I haven't yet figured out best practices. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-21-2011 [eluser]jk215[/eluser] [quote author="Ben Edmunds" date="1300565021"]jk215, So you change identity to username, then try to login with username=admin and you get a login error. Make sure the username is set in the DB. You might have to throw some debug code in ion_auth_model->login()...[/quote] Yes that is correct. I changed the config to 'username' and attempted to login in the default auth/login screen. Assuming everything is at default, do I have to change anything? Am I supposed to make my own login controller/view to accommodate switching the identity? Not sure what you mean by making sure the username is set in the DB. Im trying to retrieve the default 'administrator' row of the DB. Also I created a function to get user by username in the ion_auth_model and it isnt returning an object. I basically copied the get_user_by_email function verbatim. Can anyone tell me why this doesnt work? Code: public function get_user_by_username($username) Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-21-2011 [eluser]Ben Edmunds[/eluser] jk215, Yes you will have to modify the controller and views to support username instead of email. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-23-2011 [eluser]phpserver[/eluser] [quote author="Kevin Smith (Hearsay)" date="1300731906"][quote author="Ben Edmunds" date="1300702925"]Kevin, Not really, a lot of the time even if your using a nosql database you would store users in a sql db. If you write a model for it though send me a pull request, I'm sure it would help others.[/quote] Ah, thanks for the info. I'm still dipping my toes into this NoSQL thing, so I haven't yet figured out best practices.[/quote] I have been looking at nosql and how one can implement it fully and its a huge undertaking by all means.I have been using cache db for hierarchical data and its kind of impressive.To add a proper nosql driver you have to figure a way to handle unstructured data and be a champion of the topic maps concept. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-23-2011 [eluser]rulin[/eluser] [quote author="Ben Edmunds" date="1300768442"]jk215, Yes you will have to modify the controller and views to support username instead of email.[/quote] Hi Ben I've sent jk215 my modified controller/views to allow log in with username. Looks like it's working fine for him. If anyone else is struggling to change from email to username please PM me and I'll gladly let them have a copy. Russ Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 03-23-2011 [eluser]Ben Edmunds[/eluser] Thanks Russ! |