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
|
@ -307,7 +307,7 @@
|
||||||
var _this = this;
|
var _this = this;
|
||||||
this._toggleAddingToken(true);
|
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'), {
|
var creatingToken = $.ajax(OC.generateUrl('/settings/personal/authtokens'), {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Reference in New Issue