diff --git a/avRegistration/login-directive/login-directive.js b/avRegistration/login-directive/login-directive.js index 03091c91..a836d876 100644 --- a/avRegistration/login-directive/login-directive.js +++ b/avRegistration/login-directive/login-directive.js @@ -444,14 +444,14 @@ angular.module('avRegistration') $window.location.href = '/booth/' + autheventid + '/vote'; } else { scope.error = $i18next( - 'avRegistration.loginError.' + authevent.auth_method + '.unrecognizedServerResponse', + 'avRegistration.loginError.' + scope.method + '.unrecognizedServerResponse', {support: ConfigService.contact.email} ); } } else { scope.sendingData = false; scope.error = $i18next( - 'avRegistration.loginError.' + authevent.auth_method + '.invalidServerResponse', + 'avRegistration.loginError.' + scope.method + '.invalidServerResponse', {support: ConfigService.contact.email} ); } @@ -460,7 +460,7 @@ angular.module('avRegistration') scope.sendingData = false; var codename = response.data.error_codename; scope.error = $i18next( - 'avRegistration.loginError.' + authevent.auth_method + '.' + codename, + 'avRegistration.loginError.' + scope.method + '.' + codename, {support: ConfigService.contact.email} ); } diff --git a/dist/appCommon-vmaster.js b/dist/appCommon-vmaster.js index 198d9f7a..53c3542f 100644 --- a/dist/appCommon-vmaster.js +++ b/dist/appCommon-vmaster.js @@ -550,15 +550,15 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist isFirst: 0 === index }; }).value(), $window.sessionStorage.setItem("vote_permission_tokens", JSON.stringify(tokens)), - $window.location.href = "/booth/" + autheventid + "/vote") : scope.error = $i18next("avRegistration.loginError." + authevent.auth_method + ".unrecognizedServerResponse", { + $window.location.href = "/booth/" + autheventid + "/vote") : scope.error = $i18next("avRegistration.loginError." + scope.method + ".unrecognizedServerResponse", { support: ConfigService.contact.email - })) : (scope.sendingData = !1, scope.error = $i18next("avRegistration.loginError." + authevent.auth_method + ".invalidServerResponse", { + })) : (scope.sendingData = !1, scope.error = $i18next("avRegistration.loginError." + scope.method + ".invalidServerResponse", { support: ConfigService.contact.email })); }, function(codename) { scope.sendingData = !1; codename = codename.data.error_codename; - scope.error = $i18next("avRegistration.loginError." + authevent.auth_method + "." + codename, { + scope.error = $i18next("avRegistration.loginError." + scope.method + "." + codename, { support: ConfigService.contact.email }); }))) : scope.resendAuthCode()));