Mladen Ilić
Mladen Ilić
There are no events available at the moment. If you are up for it, feel free to start a PR, I will help in any way I can. :)
I think it will have some weird effects. For example, activity logging (login time/ip) will be triggered on auto_login. So if admin hijacks user session, it will be tracked as...
It seems that the original intention was to return the user instance. However, I agree with you that returning authentication instance makes more sense. I think we should revert back...
@athix: #218 implements a modules which adds support for this. Looking forward to your feedback.
@Sanjay-Chaudhary: PR is not yet merged to the master, you'd have to use forked repo for now: `gem 'sorcery', git: 'git://github.com/mladenilic/sorcery.git', branch: 'single_session'` Also, you'd need to install new submodule...
Your controller extends `ActionController::API`, which does not include `ActionController::Cookies` module. Since you have _remember_me_ submodule activated, it's trying to log user in from cookie. To have access to cookies, you...
Login method calls `form_authenticity_token` which is defined in request forgery protection concern. You can include it with: ```rb include ActionController::RequestForgeryProtection ```
Seems like new website design took priority over working SDK. ;-)