diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-21 22:10:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-21 22:10:39 +0100 |
commit | de0df3cfd9e14740c0541c49bc167510f17ae916 (patch) | |
tree | ba6c999ef39b7021d1cec7864d288e1c1be59f0c | |
parent | 206ef51eac4f65242658733f6899f7fe3fa473b2 (diff) | |
parent | 2a712abdfd89d43bb3c23d86403059baff75884c (diff) | |
download | nextcloud-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.js | 2 |
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: { |