You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, am using the this gem and it works great...
i just have one question is it possible to sign in a user from a controller??
am trying to do something like this:
classApi::V1::SessionsController < DeviseTokenAuth::SessionsControllerdefcreatebeginldap_user=User.someService# Call a service with login data...ifldap_user# sing in userelserenderjson: {:error=>'Invalid Login'}.to_json,status: :bad_requestendrescueException=>exrenderjson: {:error=>ex.message}.to_json,status: :bad_requestendendend
so what am trying to do is:
before the user is sign in, get some external data and if the data is returned sing in the user (i have access to the user data)...
the problem is that am not sure how to sing in the user... is there a helper to sing in the user?? or do i have to overwrite the whole sessions controller??
any help will be appreciated and thanks in advance.
to handle my views am using angular with ng-token-auth
The text was updated successfully, but these errors were encountered:
hi, am using the this gem and it works great...
i just have one question is it possible to sign in a user from a controller??
am trying to do something like this:
so what am trying to do is:
before the user is sign in, get some external data and if the data is returned sing in the user (i have access to the user data)...
the problem is that am not sure how to sing in the user... is there a helper to sing in the user?? or do i have to overwrite the whole sessions controller??
any help will be appreciated and thanks in advance.
to handle my views am using angular with ng-token-auth
The text was updated successfully, but these errors were encountered: