Merge pull request #2220 from nextcloud/app-password-default-device-name

app passwords: add default name if none given
This commit is contained in:
Lukas Reschke 2016-11-21 22:10:39 +01:00 committed by GitHub
commit de0df3cfd9

View file

@ -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: {