Skip to content

Cover the "ttl" property? #685

Closed
Closed

Description

@Spark-star

I created a model "Account" which extended from "User", I defined the property "ttl" like this:

{

  "name": "Account",
  "plural": "accounts",
  "base": "User",
  "Model": {
    "Master": "master"
  },
  "ttl": 31449600,
  "properties": {
    "cellphone": {
      "type": "string",
      "required": true
    }
  },
"relations": {
    "accessTokens": {
      "type": "hasMany",
      "model": "AccessToken",
      "foreignKey": "accountId"
    }
}
...
}

But when I use "Account.login" with given username and password , the responses' "ttl" has not been set to 31449600, which is still 1209600.

Is it a bug?

The max value the ttl can set is 31556926.

Activity

  1. loay commented on Jan 26, 2016

    @loay
    Contributor

    @Spark-star
    This PR should have fixed the issue:
    #956

    Thanks

  2. loay commented on Jan 27, 2016

    @loay
    Contributor

    Hi @Spark-star
    The issue is closed for now since the PR should have fixed it. If you are still running into problems, feel free to leave a comment and I will reopen the issue.
    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions