Merge pull request #2220 from nextcloud/app-password-default-device-name
app passwords: add default name if none given
This commit is contained in:
commit
de0df3cfd9
1 changed files with 1 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue