From 2a712abdfd89d43bb3c23d86403059baff75884c Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 21 Nov 2016 20:28:21 +0100 Subject: [PATCH] use date as device name if no name was given Signed-off-by: Bjoern Schiessle --- settings/js/authtoken_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 24593a04f53..b07d480d66f 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -307,7 +307,7 @@ var _this = this; this._toggleAddingToken(true); - var deviceName = this._tokenName.val(); + var deviceName = this._tokenName.val() !== '' ? this._tokenName.val() : new Date(); var creatingToken = $.ajax(OC.generateUrl('/settings/personal/authtokens'), { method: 'POST', data: { -- 2.39.5