# |
Apr 13th 2010, 19:39 |
savant |
the only reason im doing this is because I want to get it to a point where I can add spam protection so I stop getting comment spam emails |
# |
Apr 13th 2010, 19:38 |
savant |
that was my plan all along. why, am I going to be upset about what was actually planned? |
# |
Apr 13th 2010, 19:35 |
savant |
at least that is my intention |
# |
Apr 13th 2010, 19:35 |
savant |
with like actual 1.3 conventions |
# |
Apr 13th 2010, 19:35 |
savant |
im making the existing bakery work completely in 1.3 |
# |
Apr 13th 2010, 19:34 |
Predominant |
I'm sorry, savant. Are you porting the existing bakery, for some reason? |
# |
Apr 13th 2010, 19:34 |
savant |
so I dont know what is happening |
# |
Apr 13th 2010, 19:33 |
savant |
and, well, the actual db has a 255 character field for the password |
# |
Apr 13th 2010, 19:33 |
savant |
I mean, AuthComponent does hashing by default to 40 chars |
# |
Apr 13th 2010, 19:33 |
savant |
so ummm, since Im going to change this all to AuthComponent, do I get to see my actual password? |
# |
Apr 13th 2010, 18:58 |
savant |
that was a fun bug to trace and fix |
# |
Apr 13th 2010, 18:58 |
savant |
another, intermittent, issue was the bbcode formatter breaking when there was a large incoming bit of encoded code. for whatever reason the regex just breaks completely in 5.3.1 when there are large bits. not sure why, but I solved it by storing the unencoded code in an array and then replacing it with a hash of that code before encoding/decoding |
# |
Apr 13th 2010, 18:54 |
savant |
lots of the code is still yucky (using a custom Model::read() function) but it looks like it works and can be refactored |
# |
Apr 13th 2010, 18:54 |
savant |
I have gotten it to the point where most (all?) public actions work. I haven't tested commenting, but theoretically that works as well |
# |
Apr 13th 2010, 18:53 |
savant |
im just trying to stay away from building custom components or using outside plugins |
# |
Apr 13th 2010, 18:50 |
savant |
unfortunately this is not available in 1.2.x or 1.3 |
# |
Apr 13th 2010, 18:50 |
savant |
and then tell the AuthComponent to use that whenever it tries to Authenticate a user |
# |
Apr 13th 2010, 18:50 |
savant |
ideally, i could specify a function in my User model, say User::login() |
# |
Apr 13th 2010, 18:49 |
savant |
which is okay, but the AuthComponent doesn't allow one to override HOW the user is found |
# |
Apr 13th 2010, 18:49 |
savant |
well the way the bakery works, it pulls in data from related models |
# |
Apr 13th 2010, 18:48 |
PhpNut |
savant: you talking about return $this->Session->read('User'); ? |
# |
Apr 13th 2010, 18:48 |
savant |
im just hesitant to use plugins outside of the CakePHP core, like Authsome instead of AuthComponent |
# |
Apr 13th 2010, 18:48 |
PhpNut |
I wrote most of the user model code |
# |
Apr 13th 2010, 18:48 |
savant |
haha |
# |
Apr 13th 2010, 18:48 |
savant |
i got hacky and added in replacements to functions in the AppModel, so most of it works now (I've not touched the admin functions) but I want to remove all of it |
# |
Apr 13th 2010, 18:48 |
PhpNut |
btw I did not write that code :) |
# |
Apr 13th 2010, 18:48 |
Predominant |
Sorry about the delay there |
# |
Apr 13th 2010, 18:48 |
Predominant |
savant: I'll get this stuff together for you now. |
# |
Apr 13th 2010, 18:47 |
savant |
but it breaks all over the place in 1.3 |
# |
Apr 13th 2010, 18:47 |
savant |
the bakery runs mostly fine in 1.2.x |
# |
Apr 13th 2010, 18:47 |
savant |
PhpNut: yeah I saw. it took me a while to realize that |
# |
Apr 13th 2010, 18:46 |
PhpNut |
there are different levels of users in the bakery |
# |
Apr 13th 2010, 18:46 |
Predominant |
Perhaps your frustrations / issues, savant, could be channeled into productive discussion about architecture, rather than bitching about it on Twitter. |
# |
Apr 13th 2010, 18:45 |
savant |
feel free to do so, my code is in the remaster branch at github.com/josegonzalez/bakery |
# |
Apr 13th 2010, 18:45 |
PhpNut |
auth was not in 1.0 ;) |
# |
Apr 13th 2010, 18:45 |
savant |
yes no problem |
# |
Apr 13th 2010, 18:45 |
PhpNut |
I might just take time to review some of your current code and release my anguish of it on twitter, you like that idea? :) |
# |
Apr 13th 2010, 18:44 |
savant |
sorry |
# |
Apr 13th 2010, 18:44 |
PhpNut |
So I take your bashing on twitter a little personal |
# |
Apr 13th 2010, 18:44 |
savant |
oh well |
# |
Apr 13th 2010, 18:44 |
savant |
if only it were more similar to how AuthComponent works |