GovReady / GovReady-Drupal-Agent

Plugin for Drupal to assist with compliance
GNU Affero General Public License v3.0
1 stars 0 forks source link

Accounts with lastLogin="0" should not appear in Inactive Accounts #32

Closed jlyon closed 7 years ago

jlyon commented 8 years ago

Steps:

  1. Create a new user
  2. Update the API drush govready-collect all Result: New user will appear under Inactive accounts, will have last access date set to 1969.

Feed output looks like attached (lastLogin="0") screenshot from 2016-07-19 13 38 29

aschmoe commented 8 years ago

@jlyon the local mode trigger is sending out account changes, but the API is not receiving them

Going out:

[
{
"userId": "1",
"username": "admin",
"email": "admin@example.com",
"name": "admin",
"created": "1468876332",
"roles": [
"authenticated user",
"administrator"
],
"superAdmin": true,
"lastLogin": "1468960310"
},
{
"userId": "2",
"username": "aasdasdas",
"email": "asdasd@asdasd.com",
"name": "aasdasdas",
"created": "1469042999",
"roles": [
"authenticated user"
],
"superAdmin": false,
"lastLogin": "0"
},
{
"userId": "3",
"username": "asdasdasdasdasd2",
"email": "aasdasd@asdasda.com",
"name": "asdasdasdasdasd2",
"created": "1469043354",
"roles": [
"authenticated user",
"administrator"
],
"superAdmin": true,
"lastLogin": "0"
}
]

Still seeing:

{
"accounts": [
{
"lastLogin": "1468960310",
"superAdmin": true,
"roles": [
"authenticated user",
"administrator"
],
"created": "1468876332",
"name": "admin",
"email": "admin@example.com",
"username": "admin",
"userId": "1"
}
]
}