Skip to content

Anonymous user is always returned after logging in.  #34

@jonnadams

Description

@jonnadams

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);
    });

screen shot 2016-10-02 at 2 40 26 am

You can see my drupal configuration here. I wanted to make sure that permissions weren't the issue so I opened them up.

screen shot 2016-10-02 at 2 19 19 am

screen shot 2016-10-02 at 2 20 47 am

Any help on the matter would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions