use date as device name if no name was given

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2016-11-21 20:28:21 +01:00
parent 206ef51eac
commit 2a712abdfd
No known key found for this signature in database
GPG key ID: 2378A753E2BF04F6

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