我试图把我的应用程序升级到科哈纳3.2,但我遇到了麻烦,因为我的用户都在数据库里,有科哈纳3.0的Auth加密密码。看起来3.2的密码不同。我可以配置3.2来使用相同的加密吗?
I have used ver 2 before but i m thinking of using ver 3 for my new project. Is it advisable to use ver 3 at this point event when it s not yet stable?
我试图把我的应用程序升级到科哈纳3.2,但我遇到了麻烦,因为我的用户都在数据库里,有科哈纳3.0的Auth加密密码。看起来3.2的密码不同。我可以配置3.2来使用相同的加密吗?
没有简单的方法。 Kohana 3. 2 使用 < code> hash_ hmac () 而不是 < code> hash 。 登录工作流程也有变化( 例如, 3. 2 中的 < code> Model_ User 不包含任何登录逻辑 ) 。 您需要复制很多代码, 从 3. 0 到 3. 2, 我不认为它是一个好主意 。
如何用密码回收链接发送电子邮件? 旧的密码会被打破, 但用户可以简单地重新定义密码 。 不要忘了注销所有“ 记住的” 用户( 在您的基本控制器中, < code> before () code> 方法是它的最佳位置 ) 。
PS,对不起我的英语, 它不是我的母语。
I have used ver 2 before but i m thinking of using ver 3 for my new project. Is it advisable to use ver 3 at this point event when it s not yet stable?
Inspired from the other community wikis, I m interested in hearing about the lesser known Kohana tips, tricks and features. Please, include only one tip per answer. Add Kohana versions if necessary. ...
My logout function needs to update the latest row of a list of logins. This is what I have came up with, however it doesn t even pass syntax validation. $query = UPDATE user_logins SET ...
Before I used a framework, I d often define things like so (so my code makes more sense to read) define( MINUTE , 60); define( HOUR , MINUTE * 60); // etc Is anything like this built into Kohana 3, ...
I have been through a fair bit of the code in modules/database/classes/ but still have not found how to return the last insert Id. How do I get this?
I ve looked at how shadowhand (the main guy behind Kohana currently) set up his bootstrap.php file to handle exceptions on GitHub. I thought, "that s cool", so I incorporated something similar. ...
I m using Kohana 3. I m writing an update query, and it is working for everything except this one section. If I do a var_dump() on the results of $db->execute() I get either a 1 or 0 to say it ...
I m using the ORM module in Kohana 3 and instead of displaying the first row of a database result set, what query should I use in my code when I want to get a random row from a certain table?