summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/u2f/register.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/u2f/register.js')
-rw-r--r--app/assets/javascripts/u2f/register.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/u2f/register.js b/app/assets/javascripts/u2f/register.js
index 22fbf9f3a91..3e0a2d53bd2 100644
--- a/app/assets/javascripts/u2f/register.js
+++ b/app/assets/javascripts/u2f/register.js
@@ -72,7 +72,8 @@
U2FRegister.prototype.renderError = function(error) {
this.renderTemplate('error', {
- error_message: error.message()
+ error_message: error.message(),
+ error_code: error.errorCode
});
return this.container.find('#js-u2f-try-again').on('click', this.renderSetup);
};