aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-03-13 12:37:19 +0100
committerGitHub <noreply@github.com>2017-03-13 12:37:19 +0100
commit08cbd82a16aa990a87a8dbe80159017c72de5fd5 (patch)
tree8f2ad0e0b8cbec6d9a4d1307f959e250cbb78169
parentf7cef9f7024a0f94a36746daee2fe4ef6335bac6 (diff)
parentf72373dfda92d9ef6b279bd4a196cfa3d399b851 (diff)
downloadnextcloud-server-08cbd82a16aa990a87a8dbe80159017c72de5fd5.tar.gz
nextcloud-server-08cbd82a16aa990a87a8dbe80159017c72de5fd5.zip
Merge pull request #3803 from Thijsdh/master
Create app password by pressing enter
-rw-r--r--settings/js/authtoken_view.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js
index 365057b5fc6..9931be2ae1f 100644
--- a/settings/js/authtoken_view.js
+++ b/settings/js/authtoken_view.js
@@ -230,6 +230,12 @@
this._tokenName = $('#app-password-name');
this._addAppPasswordBtn = $('#add-app-password');
this._addAppPasswordBtn.click(_.bind(this._addAppPassword, this));
+ this._appPasswordName = $('#app-password-name');
+ this._appPasswordName.on('keypress', function(event) {
+ if (event.which === 13) {
+ _this._addAppPassword();
+ }
+ });
this._result = $('#app-password-result');
this._newAppLoginName = $('#new-app-login-name');