summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-11-21 22:10:39 +0100
committerGitHub <noreply@github.com>2016-11-21 22:10:39 +0100
commitde0df3cfd9e14740c0541c49bc167510f17ae916 (patch)
treeba6c999ef39b7021d1cec7864d288e1c1be59f0c
parent206ef51eac4f65242658733f6899f7fe3fa473b2 (diff)
parent2a712abdfd89d43bb3c23d86403059baff75884c (diff)
downloadnextcloud-server-de0df3cfd9e14740c0541c49bc167510f17ae916.tar.gz
nextcloud-server-de0df3cfd9e14740c0541c49bc167510f17ae916.zip
Merge pull request #2220 from nextcloud/app-password-default-device-name
app passwords: add default name if none given
-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: {