English 中文(简体)
我能用3.2的科哈纳3.0 Auth模块吗?
原标题:Can I use kohana 3.0 Auth module with 3.2

我试图把我的应用程序升级到科哈纳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 () 方法是它的最佳位置 ) 。

PS,对不起我的英语, 它不是我的母语。





相关问题
Favourite Kohana Tips & Features? [closed]

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. ...

Update query that needs to find the newest row

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 ...

Is there a way to access datetime constants in Kohana 3?

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, ...

Send 404s to custom route in Kohana 3

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. ...

Get a random row from a database query in Kohana 3

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?

热门标签