aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-11-21 20:28:21 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2016-11-21 20:28:21 +0100
commit2a712abdfd89d43bb3c23d86403059baff75884c (patch)
treeba6c999ef39b7021d1cec7864d288e1c1be59f0c /settings
parent206ef51eac4f65242658733f6899f7fe3fa473b2 (diff)
downloadnextcloud-server-2a712abdfd89d43bb3c23d86403059baff75884c.tar.gz
nextcloud-server-2a712abdfd89d43bb3c23d86403059baff75884c.zip
use date as device name if no name was given
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings')
-rw-r--r--settings/js/authtoken_view.js2
1 files changed, 1 insertions, 1 deletions
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: {