-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
As the title states the anonymous user is always returned when trying to log in.
angular.module('angular-drupal').config(function($provide) {
$provide.value('drupalSettings', {
sitePath: 'http://api.circuit-territory.vm'
});
});
drupal.userLogin('test', 'test!').then(function(data) {
console.log(data);
var user = drupal.currentUser();
var msg = user.isAuthenticated() ?
'Hello ' + user.getAccountName() : 'Hello Anonymous User';
console.log(msg);
});
You can see my drupal configuration here. I wanted to make sure that permissions weren't the issue so I opened them up.
Any help on the matter would be greatly appreciated.


