]> source.dussan.org Git - nextcloud-server.git/commitdiff
use date as device name if no name was given 2220/head
authorBjoern Schiessle <bjoern@schiessle.org>
Mon, 21 Nov 2016 19:28:21 +0000 (20:28 +0100)
committerBjoern Schiessle <bjoern@schiessle.org>
Mon, 21 Nov 2016 19:28:21 +0000 (20:28 +0100)
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
settings/js/authtoken_view.js

index 24593a04f53cfd328fc77fd3a7d5363f4cd59c7e..b07d480d66f50b70ccc6f6676e86324a8cf2e746 100644 (file)
                        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: {