CodeIgniter坦克认证 [英] CodeIgniter Tank Auth
问题描述
我使用了这个优秀的图书馆,名为 Tank Auth 。希望这个问题不会太小,因为它的具体到这个图书馆。
I am making use of this excellent library called Tank Auth. Hopefully this question won't be too niche as its specific to this library.
我试图工作,如果我可以登录用户,一旦他们已经注册。似乎这个库不提供这个功能,我不想开始搞乱的图书馆,但也许有人已经这样做,可以描述一个非黑客的方式,使这个工作吗?
I am trying to work how I can login a user as soon as they have registered. It seems this library doesn't offer this functionality and I don't want to start messing with the library but maybe someone has done this already and can describe a non-hackey way of getting this to work?
感谢所有人的帮助。
推荐答案
到我的电子邮件非常快,这是一个非常容易的解决方案!只需调用登录函数!
The creator of this email library was kind enough to reply to my email very quickly and it was a very easy solution! As simple as calling the login function!
$this->tank_auth->login($data['email'], $this->form_validation->set_value('password'), true, $data['login_by_username'], $data['login_by_email']);
这篇关于CodeIgniter坦克认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!