proxyAuth: use default expiry time in cookie (1 year)

This commit is contained in:
Girish Ramakrishnan
2021-04-30 10:31:09 -07:00
parent 6fe8974a2d
commit 8ff68331a8
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ function activate(username, password, email, displayName, ip, auditSource, callb
if (error && error.reason === BoxError.ALREADY_EXISTS) return callback(new BoxError(BoxError.CONFLICT, 'Already activated'));
if (error) return callback(error);
tokens.add(tokens.ID_WEBADMIN, userObject.id, Date.now() + constants.DEFAULT_TOKEN_EXPIRATION, {}, function (error, result) {
tokens.add(tokens.ID_WEBADMIN, userObject.id, Date.now() + constants.DEFAULT_TOKEN_EXPIRATION_MSECS, {}, function (error, result) {
if (error) return callback(error);
eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, { });