jeudi 19 mai 2016

How to manually login by Id in satellizer, like in laravel

I am using satellizer for token based authentication in laravel,

Now I am trying to do login by Id without providing email/pass. Like in laravel

Although, I am able to do manually login by providing credentials like this,

$auth.login({email: "myemail@gmail.com",password:"mypassword",domain:"mydomain"}).then(function(data) {
  $state.go('dashboard');
});

Please ask if you need more specific code related to this. I Am not sure which code to share that's why I posted less code.

Another alternative question is : How to authenticate in satellizer for other sub-domain?

Thanks for your attention.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1ONm39B
via IFTTT

Aucun commentaire:

Enregistrer un commentaire